File: rules

package info (click to toggle)
ninpaths 1.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 64 kB
  • ctags: 37
  • sloc: ansic: 400; sh: 38; makefile: 34
file content (49 lines) | stat: -rwxr-xr-x 964 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f
# Original version Copyright by Ian Jackson.

# Rather paranoid than sorry. Make the shell exit with an error if an
# untested command fails.
SHELL+= -e

#export DH_VERBOSE=1

build:
	$(checkdir)
	gcc -g -O2 -Wall ninpaths.c -o ninpaths
	touch build

clean:
	$(checkdir)
	-rm -f build
	-rm -f ninpaths
	-cd debian; rm -rf tmp files* substvars *debhelper 

binary-arch:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp

	mkdir -p debian/tmp/usr/lib/news/bin/
	cp ninpaths ginpaths* sendinpaths debian/tmp/usr/lib/news/bin/
	dh_installdocs
	cp ninpaths.README debian/tmp/usr/share/doc/ninpaths/README
	install -d -onews -gnews debian/tmp/var/log/news/path/
	dh_installchangelogs
	dh_installcron
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_builddeb

define checkdir
	test -f debian/rules
endef

binary:	binary-arch

checkroot:
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep clean checkroot