File: rules

package info (click to toggle)
if-transition 1%3A1-2
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 1,508 kB
  • ctags: 2
  • sloc: makefile: 34; sh: 16
file content (43 lines) | stat: -rwxr-xr-x 962 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
#!/usr/bin/make -f

export DH_COMPAT = 2

zdir := /usr/share/games/zcode/transition

clean:
	dh_testdir
	dh_clean
	rm -f debian/*.postinst debian/*.prerm

build:

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	@(set -e; while read p g; do \
		echo "install -d debian/$$p$(zdir)"; \
		install -d debian/$$p$(zdir); \
		echo "install -m644 $$g debian/$$p$(zdir)"; \
		install -m644 $$g debian/$$p$(zdir); \
		echo "sed s/@GAME@/$$g/g debian/postinst.in > debian/$$p.postinst"; \
		sed "s/@GAME@/$$g/g" debian/postinst.in > debian/$$p.postinst; \
		echo "sed s/@GAME@/$$g/g debian/prerm.in > debian/$$p.prerm"; \
		sed "s/@GAME@/$$g/g" debian/prerm.in > debian/$$p.prerm; \
	done) < debian/games

binary: binary-indep binary-arch
binary-arch:

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: clean build install binary binary-indep binary-arch