File: rules

package info (click to toggle)
purity-off 0-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze, wheezy
  • size: 204 kB
  • ctags: 2
  • sloc: makefile: 26
file content (36 lines) | stat: -rwxr-xr-x 534 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
#!/usr/bin/make -f

SHELL+= -e
export DH_COMPAT=4
#export DH_VERBOSE=1

build:

clean:
	$(checkdir)
	-rm -f build
	dh_clean

binary-indep: checkroot
	$(checkdir)
	dh_clean
	dh_installdirs usr/share/games/purity/
	cp tests/* debian/purity-off/usr/share/games/purity/
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_builddeb
	
define checkdir
	test -f debian/rules
endef

binary: binary-indep

checkroot:
	test root = "`whoami`"

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