Rewrite debian/rules in minimal dh v7 style
Use files debian/install and debian/manpages instead of overrides.
Axel Beckert
5 years ago
5 | 5 |
Thanks! (Closes: #718496)
|
6 | 6 |
* Switch git and collab-maint; update Vcs-* headers accordingly.
|
7 | 7 |
* Bump debhelper compatibility to 10. Update versioned b-d accordingly.
|
|
8 |
* Rewrite debian/rules in minimal dh v7 style.
|
|
9 |
+ Use files debian/install and debian/manpages instead of overrides.
|
8 | 10 |
|
9 | 11 |
-- Axel Beckert <abe@debian.org> Sat, 08 Oct 2016 00:33:40 +0200
|
10 | 12 |
|
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 | |
configure: configure-stamp
|
8 | |
configure-stamp:
|
9 | |
dh_testdir
|
10 | |
# Add here commands to configure the package.
|
11 | |
|
|
5 |
%:
|
|
6 |
dh $@
|
12 | 7 |
|
13 | |
touch configure-stamp
|
14 | |
|
15 | |
build: configure-stamp build-stamp
|
16 | |
build-stamp:
|
17 | |
dh_testdir
|
18 | |
|
19 | |
# Add here commands to compile the package.
|
20 | |
# $(MAKE)
|
21 | |
|
22 | |
touch build-stamp
|
23 | |
|
24 | |
clean:
|
25 | |
dh_testdir
|
26 | |
dh_testroot
|
27 | |
rm -f build-stamp configure-stamp
|
28 | |
|
29 | |
# Add here commands to clean up after the build process.
|
30 | |
# -$(MAKE) clean
|
31 | |
|
32 | |
dh_clean
|
33 | |
|
34 | |
install: build
|
35 | |
dh_testdir
|
36 | |
dh_testroot
|
37 | |
dh_clean -k
|
38 | |
dh_installdirs
|
39 | |
|
40 | |
# Add here commands to install the package into debian/tmp.
|
41 | |
# $(MAKE) install DESTDIR=`pwd`/debian/tmp
|
|
8 |
override_dh_auto_install:
|
42 | 9 |
install -o root -g root -m 755 slay debian/slay/usr/sbin
|
43 | |
|
44 | |
|
45 | |
# Build architecture-independent files here.
|
46 | |
binary-indep: build install
|
47 | |
# dh_testversion
|
48 | |
dh_testdir
|
49 | |
dh_testroot
|
50 | |
dh_installdebconf
|
51 | |
dh_installdocs
|
52 | |
# dh_installexamples
|
53 | |
# dh_installmenu
|
54 | |
# dh_installemacsen
|
55 | |
# dh_installpam
|
56 | |
# dh_installinit
|
57 | |
# dh_installcron
|
58 | |
dh_installman slay.8
|
59 | |
# dh_installinfo
|
60 | |
# dh_undocumented
|
61 | |
dh_installchangelogs
|
62 | |
# dh_link
|
63 | |
dh_strip
|
64 | |
dh_compress
|
65 | |
dh_fixperms
|
66 | |
# # You may want to make some executables suid here.
|
67 | |
# dh_suidregister
|
68 | |
# dh_makeshlibs
|
69 | |
dh_installdeb
|
70 | |
# dh_perl
|
71 | |
dh_shlibdeps
|
72 | |
dh_gencontrol
|
73 | |
dh_md5sums
|
74 | |
dh_builddeb
|
75 | |
|
76 | |
# Build architecture-dependent files here.
|
77 | |
binary-arch: build install
|
78 | |
# nothing to do, package is arch: all
|
79 | |
|
80 | |
binary: binary-indep binary-arch
|
81 | |
.PHONY: build clean binary-indep binary-arch binary install configure
|