]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi2
r358: * Put dh_installogrotate in the examples, Closes: #66986
[debhelper.git] / examples / rules.multi2
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # This file is public domain software, originally written by Joey Hess.
4 #
5 # This version is for a multibinary package. It also allows you to build any
6 # of the binary packages independantly, via binary-<package> targets.
7
8 # Uncomment this to turn on verbose mode. 
9 #export DH_VERBOSE=1
10
11 # This is the debhelper compatibility version to use.
12 export DH_COMPAT=1
13
14 # This has to be exported to make some magic below work.
15 export DH_OPTIONS
16
17 build: build-stamp
18 build-stamp:
19         dh_testdir
20
21         # Add here commands to compile the package.
22         #$(MAKE)
23
24         touch build-stamp
25
26 clean:
27         dh_testdir
28         dh_testroot
29         rm -f build-stamp
30
31         # Add here commands to clean up after the build process.
32         #-$(MAKE) clean
33         #-$(MAKE) distclean
34
35         dh_clean
36
37 install: DH_OPTIONS=
38 install: build
39         dh_testdir
40         dh_testroot
41         dh_clean -k
42         dh_installdirs
43
44         # Add here commands to install the package into debian/tmp.
45         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
46
47         dh_movefiles
48
49 # This single target is used to build all the packages, all at once, or
50 # one at a time. So keep in mind: any options passed to commands here will
51 # affect _all_ packages. Anything you want to only affect one package
52 # should be put in another target, such as the install target.
53 binary-common:
54         # Need this version of debhelper for DH_OPTIONS to work.
55         dh_testversion 1.1.17
56         dh_testdir
57         dh_testroot
58 #       dh_installdebconf
59         dh_installdocs
60         dh_installexamples
61         dh_installmenu
62 #       dh_installlogrotate
63 #       dh_installemacsen
64 #       dh_installpam
65 #       dh_installmime
66 #       dh_installinit
67         dh_installcron
68         dh_installinfo
69 #       dh_undocumented
70         dh_installchangelogs
71         dh_link
72         dh_compress
73         dh_fixperms
74         # You may want to make some executables suid here.
75         dh_suidregister
76 #       dh_makeshlibs
77         dh_installdeb
78 #       dh_perl
79         dh_shlibdeps
80         dh_gencontrol
81         dh_md5sums
82         dh_builddeb
83
84 # Build architecture independant packages using the common target.
85 binary-indep: build install
86 # (Uncomment this next line if you have such packages.)
87 #        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
88
89 # Build architecture dependant packages using the common target.
90 binary-arch: build install
91         $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
92
93 # Any other binary targets build just one binary package at a time.
94 binary-%: build install
95         make -f debian/rules binary-common DH_OPTIONS=-p$*
96
97 binary: binary-indep binary-arch
98 .PHONY: build clean binary-indep binary-arch binary install