Debian Codegraph @

packaging/debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpatch/dpatch.make
7
8 # These are used for cross-compiling and for saving the configure script
9 # from having to guess our platform (since we know it already)
10 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12
13 config.status: patch
14 dh_testdir
15 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
16 --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
17 --datadir=/usr/share/games --bindir=/usr/games --mandir=/usr/share/man
18
19 build: build-stamp
20 build-stamp: config.status
21 dh_testdir
22 $(MAKE)
23 touch build-stamp
24
25 clean: unpatch
26 dh_testdir
27 dh_testroot
28 rm -f build-stamp
29 [ ! -f Makefile ] || $(MAKE) distclean
30 dh_clean
31
32 install: build
33 dh_testdir
34 dh_testroot
35 dh_clean -k
36 dh_installdirs
37
38 binary-indep: build install
39 dh_testdir -i
40 dh_testroot -i
41 dh_installchangelogs -i ChangeLog
42 dh_installdocs -i
43 dh_install -i
44 dh_compress -i
45 dh_fixperms -i
46 dh_installdeb -i
47 dh_gencontrol -i
48 dh_md5sums -i
49 dh_builddeb -i
50
51 binary-arch: build install
52 dh_testdir -a
53 dh_testroot -a
54 dh_installchangelogs -a ChangeLog
55 dh_installdocs -a
56 dh_install -a
57 dh_desktop -a
58 dh_installmenu -a
59 dh_strip -a --dbg-package=mana-dbg
60 dh_compress -a
61 dh_fixperms -a
62 dh_installdeb -a
63 dh_shlibdeps -a
64 dh_gencontrol -a
65 dh_md5sums -a
66 dh_builddeb -a
67
68 binary: binary-indep binary-arch
69 .PHONY: build clean binary-indep binary-arch binary install configure