File: rules

package info (click to toggle)
bow 20020213-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,596 kB
  • ctags: 2,871
  • sloc: ansic: 36,321; lisp: 1,072; cpp: 969; makefile: 569; perl: 495; sh: 101
file content (71 lines) | stat: -rwxr-xr-x 1,597 bytes parent folder | download | duplicates (2)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/make -f

package=libbow

build:
	dh_testdir
	./configure --prefix debian/tmp/usr
	make
	touch build

clean:
	dh_testdir
	dh_clean
	-rm -f build
	[ ! -f Makefile ] || make clean
	rm -f config.log config.cache config.status Makefile 
	(cd argp; rm -f config.log config.cache config.status Makefile)
	-rm -rf *~ debian/tmp debian/*~ debian/files* argp/debian debian/*debhelper

binary-indep: checkroot build
	dh_testdir
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: checkroot build
	dh_testdir
	-rm -rf debian/tmp
	dh_installdirs
	make install
	make install-doc
	dh_installdocs README* TODO HACKING NEWS doc/*.html
	dh_installman debian/arrow.1 debian/crossbow.1 debian/rainbow.1 \
			debian/archer.1
	dh_installinfo doc/libbow.info
	dh_installchangelogs 
	dh_compress
#	dh_undocumented rainbow.1 archer.1 rainbow-ac.1 \
		rainbow-be.1 rainbow-pr.1 rainbow-rank.1 rainbow-stats.1
	install -m 644 debian/copyright debian/tmp/usr/share/doc/$(package)/
# Move program files:
	install -m 755 contrib/* debian/tmp/usr/share/doc/$(package)/contrib/
	dh_strip
	dh_installdeb
	dh_shlibdeps
	dh_md5sums
	dh_gencontrol
	dh_fixperms
	dh_builddeb

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary: binary-indep binary-arch

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

checkroot:
	$(checkdir)
	test root = "`whoami`"

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

#Local variables:
#mode: makefile
#End: