Shorten the rules file using the dh(1) tool.
git-svn-id: file:///svn/pkg-games/packages/trunk/alex4@11857 8808ee5c-780a-0410-9abb-a8188df92ce5
Peter Pentchev
13 years ago
12 | 12 |
* Convert to the 3.0 (quilt) source format.
|
13 | 13 |
* Add misc:Depends to the alex4-data package just in case.
|
14 | 14 |
* Expand the alex4-data package's long description.
|
15 | |
* Bump the debhelper compatibility level to 7:
|
16 | |
- let dh_clean remove the *-stamp files
|
17 | |
- use dh_prep instead of dh_clean -k
|
|
15 |
* Bump the debhelper compatibility level to 7 and shorten the rules file
|
|
16 |
using the dh(1) tool.
|
18 | 17 |
|
19 | 18 |
-- Peter Pentchev <roam@ringlet.net> Wed, 09 Mar 2011 14:14:04 +0200
|
20 | 19 |
|
2 | 2 |
# Uncomment this to turn on verbose mode.
|
3 | 3 |
#export DH_VERBOSE=1
|
4 | 4 |
|
5 | |
|
6 | 5 |
CFLAGS = -Wall -g $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)), -O0, -O2)
|
7 | 6 |
|
8 | |
|
9 | |
build: build-arch build-indep
|
10 | |
|
11 | |
build-arch: build-arch-stamp
|
12 | |
build-arch-stamp:
|
13 | |
$(MAKE) -C src CFLAGS="$(CFLAGS)" \
|
14 | |
PREFIX=/usr DATADIR=/usr/share/games/alex4
|
|
7 |
build: build-stamp
|
|
8 |
build-stamp:
|
|
9 |
dh build --before auto_build
|
|
10 |
dh_auto_build -D src -- CFLAGS="$(CFLAGS)" \
|
|
11 |
DATADIR=/usr/share/games/alex4
|
|
12 |
dh build --remaining
|
15 | 13 |
touch $@
|
16 | 14 |
|
17 | |
build-indep:
|
18 | |
# nothing to do here
|
|
15 |
clean:
|
|
16 |
dh clean --before auto_clean
|
|
17 |
dh_auto_clean -D src
|
|
18 |
dh clean --remaining
|
19 | 19 |
|
|
20 |
install: install-stamp
|
|
21 |
install-stamp: build
|
|
22 |
dh install
|
|
23 |
touch install-stamp
|
20 | 24 |
|
21 | |
clean:
|
22 | |
dh_testdir
|
23 | |
dh_testroot
|
24 | |
[ ! -f src/Makefile ] || $(MAKE) -C src clean
|
25 | |
dh_clean
|
|
25 |
binary: binary-arch binary-indep
|
26 | 26 |
|
|
27 |
binary-arch: install
|
|
28 |
dh $@
|
27 | 29 |
|
28 | |
install: install-indep install-arch
|
|
30 |
binary-indep: install
|
|
31 |
dh $@
|
29 | 32 |
|
30 | |
install-indep: build-indep
|
31 | |
dh_testdir
|
32 | |
dh_testroot
|
33 | |
dh_prep -i
|
34 | |
dh_installdirs -i
|
35 | |
dh_install -i
|
36 | |
|
37 | |
install-arch: build-arch
|
38 | |
dh_testdir
|
39 | |
dh_testroot
|
40 | |
dh_prep -a
|
41 | |
dh_installdirs -a
|
42 | |
dh_install -a
|
43 | |
|
44 | |
|
45 | |
binary: binary-arch binary-indep
|
46 | |
|
47 | |
binary-indep: build-indep install-indep
|
48 | |
dh_testdir -i
|
49 | |
dh_testroot -i
|
50 | |
dh_installchangelogs -i
|
51 | |
dh_installdocs -i
|
52 | |
dh_compress -i
|
53 | |
dh_fixperms -i
|
54 | |
dh_installdeb -i
|
55 | |
dh_gencontrol -i
|
56 | |
dh_md5sums -i
|
57 | |
dh_builddeb -i
|
58 | |
|
59 | |
binary-arch: build-arch install-arch
|
60 | |
dh_testdir -a
|
61 | |
dh_testroot -a
|
62 | |
dh_installchangelogs -a
|
63 | |
dh_installdocs -a
|
64 | |
dh_installmenu -a
|
65 | |
dh_installman -a debian/alex4.6
|
66 | |
dh_strip -a
|
67 | |
dh_compress -a
|
68 | |
dh_fixperms -a
|
69 | |
dh_installdeb -a
|
70 | |
dh_shlibdeps -a
|
71 | |
dh_gencontrol -a
|
72 | |
dh_md5sums -a
|
73 | |
dh_builddeb -a
|
74 | |
|
75 | |
|
76 | |
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch
|
|
33 |
.PHONY: build clean binary install
|