File: rules

package info (click to toggle)
kooku 971119-2
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 112 kB
  • ctags: 2
  • sloc: makefile: 26
file content (34 lines) | stat: -rwxr-xr-x 598 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
#!/usr/bin/make -f

build:
	$(checkdir)
	touch build

clean:
	$(checkdir)
	-rm -f build
	-rm -rf debian/tmp debian/files debian/substvars debian/*.debhelper

binary-indep: checkroot build
	-rm -rf debian/tmp
	install -d debian/tmp/usr/share/games/zcode/
	install kooku.z5 debian/tmp/usr/share/games/zcode/kooku.z5
	dh_installdocs
	dh_installmenu
	dh_installchangelogs
	dh_fixperms
	dh_gencontrol
	dh_installdeb
	dh_builddeb
	
define checkdir
	test -f debian/rules
endef

binary: binary-indep

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

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