Finally switch to dh v7 style debian/rules file
Axel Beckert
10 years ago
6 | 6 |
[ Axel Beckert ]
|
7 | 7 |
* Bump debhelper compatibility to 7 to be able to use some more recent
|
8 | 8 |
features. Update versioned debhelper build-dependency accordingly.
|
|
9 |
* Revamp debian/rules
|
9 | 10 |
+ No more remove stamp files manually.
|
10 | |
* Use debian/links instead of calling ln manually in debian/rules
|
11 | |
* Use dh_install/dh_link to install all the scripts
|
12 | |
* Use debian/manpages instead of parameters to dh_installman
|
13 | |
* Use debian/docs instead of parameters to dh_installdocs
|
14 | |
* Fix lintian warning dh-clean-k-is-deprecated and use dh_prep
|
|
11 |
+ Use debian/links instead of calling ln manually in debian/rules
|
|
12 |
+ Use dh_install/dh_link to install all the scripts
|
|
13 |
+ Use debian/manpages instead of parameters to dh_installman
|
|
14 |
+ Use debian/docs instead of parameters to dh_installdocs
|
|
15 |
+ Fix lintian warning dh-clean-k-is-deprecated and use dh_prep
|
|
16 |
+ Finally switch to dh v7 style debian/rules file
|
15 | 17 |
* Apply wrap-and-sort
|
16 | 18 |
|
17 | 19 |
-- Axel Beckert <abe@debian.org> Thu, 04 Jul 2013 17:28:35 +0200
|
0 | 0 |
#!/usr/bin/make -f
|
1 | |
# Sample debian/rules that uses debhelper.
|
2 | |
# GNU copyright 1997 to 1999 by Joey Hess.
|
3 | 1 |
|
4 | 2 |
# Uncomment this to turn on verbose mode.
|
5 | 3 |
#export DH_VERBOSE=1
|
6 | 4 |
|
7 | 5 |
PODDOC=debget dglob dgrep dpigs
|
8 | 6 |
|
9 | |
build: build-arch build-indep
|
10 | |
build-arch: build-stamp
|
11 | |
build-indep: build-stamp
|
12 | |
build-stamp:
|
13 | |
dh_testdir
|
|
7 |
%:
|
|
8 |
dh $@
|
14 | 9 |
|
|
10 |
override_dh_auto_install:
|
15 | 11 |
for prog in $(PODDOC); do pod2man -c "Debian-goodies documentation" $$prog.pod > $$prog.1; done
|
16 | 12 |
|
17 | |
touch build-stamp
|
18 | |
|
19 | |
clean:
|
20 | |
dh_testdir
|
21 | |
dh_testroot
|
|
13 |
override_dh_auto_clean:
|
22 | 14 |
for prog in $(PODDOC); do rm -f $$prog.1; done
|
23 | |
|
24 | |
dh_clean
|
25 | |
|
26 | |
install: build
|
27 | |
dh_testdir
|
28 | |
dh_testroot
|
29 | |
dh_prep
|
30 | |
dh_installdirs
|
31 | |
dh_install
|
32 | |
|
33 | |
# Build architecture-dependent files here.
|
34 | |
# We have nothing to do by default.
|
35 | |
binary-arch: build install
|
36 | |
|
37 | |
# Build architecture-independent files here.
|
38 | |
binary-indep: build install
|
39 | |
dh_testdir
|
40 | |
dh_testroot
|
41 | |
dh_installdocs
|
42 | |
dh_installman
|
43 | |
# dh_undocumented
|
44 | |
dh_installchangelogs
|
45 | |
dh_link
|
46 | |
dh_compress
|
47 | |
dh_fixperms
|
48 | |
dh_installdeb
|
49 | |
dh_gencontrol
|
50 | |
dh_md5sums
|
51 | |
dh_builddeb
|
52 | |
|
53 | |
binary: binary-indep binary-arch
|
54 | |
.PHONY: build clean binary-indep binary-arch binary install configure
|