File: rules

package info (click to toggle)
crawl 1%3A4.0.0beta26-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,664 kB
  • ctags: 5,213
  • sloc: cpp: 103,500; perl: 233; makefile: 65; sh: 11
file content (66 lines) | stat: -rwxr-xr-x 1,419 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
#!/usr/bin/make -f

export DH_COMPAT=4

build: build-stamp
build-stamp:
	dh_testdir

	cd source; $(MAKE) all

	touch build-stamp

clean:
	dh_testdir
	dh_testroot

	rm -f build-stamp

	cd source; $(MAKE) distclean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	mkdir -p debian/crawl/usr/games
	mkdir -p debian/crawl/var/games/crawl
	mkdir -p debian/crawl/usr/share/man/man6
	cp -a source/crawl debian/crawl/usr/games/
	chmod 711 debian/crawl/usr/games/crawl
	cp docs/crawl.6 debian/crawl/usr/share/man/man6/
	mkdir -p debian/crawl/usr/share/lintian/overrides
	cp debian/crawl.overrides debian/crawl/usr/share/lintian/overrides/crawl
	mkdir -p debian/crawl/usr/share/doc/crawl/examples
	cp init.txt debian/crawl/usr/share/doc/crawl/examples/crawlrc

# Build architecture-independent files here.
binary-indep:
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs docs/changes.340
	dh_installmenu
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	chgrp games debian/crawl/usr/games/crawl
	chmod g+s debian/crawl/usr/games/crawl
	chgrp games debian/crawl/var/games/crawl
	chmod g+ws debian/crawl/var/games/crawl
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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