]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi2
rules.tiny: Typo fix. Closes: #479647
[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 has to be exported to make some magic below work.
12 export DH_OPTIONS
13
14 build: build-stamp
15 build-stamp:
16         dh_testdir
17
18         # Add here commands to compile the package.
19         #$(MAKE)
20
21         touch build-stamp
22
23 clean:
24         dh_testdir
25         dh_testroot
26         rm -f build-stamp
27
28         # Add here commands to clean up after the build process.
29         #$(MAKE) clean
30         #$(MAKE) distclean
31
32         dh_clean
33
34 install: DH_OPTIONS=
35 install: build
36         dh_testdir
37         dh_testroot
38         dh_prep
39         dh_installdirs
40
41         # Add here commands to install the package into debian/tmp.
42         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
43
44         dh_install
45
46 # This single target is used to build all the packages, all at once, or
47 # one at a time. So keep in mind: any options passed to commands here will
48 # affect _all_ packages. Anything you want to only affect one package
49 # should be put in another target, such as the install target.
50 binary-common:
51         dh_testdir
52         dh_testroot
53         dh_installchangelogs
54         dh_installdocs
55         dh_installexamples
56         dh_installmenu
57 #       dh_installdebconf
58 #       dh_installlogrotate
59 #       dh_installemacsen
60 #       dh_installcatalogs
61 #       dh_installpam
62 #       dh_installmime
63 #       dh_installinit
64 #       dh_installman
65 #       dh_installcron
66 #       dh_installinfo
67 #       dh_installwm
68 #       dh_installudev
69 #       dh_lintian
70 #       dh_undocumented
71         dh_strip
72         dh_link
73         dh_compress
74         dh_fixperms
75 #       dh_perl
76 #       dh_python
77 #       dh_makeshlibs
78         dh_installdeb
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-common binary install