]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r506: * Introduced the debian/compat file. This is the new, preferred way to say
[debhelper.git] / examples / rules.multi
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 hypothetical package that builds an
6 # architecture-dependant package, as well as an architecture-independent
7 # package.
8
9 # Uncomment this to turn on verbose mode. 
10 #export DH_VERBOSE=1
11
12 build: build-stamp
13 build-stamp:
14         dh_testdir
15
16         # Add here commands to compile the package.
17         #$(MAKE)
18
19         touch build-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp 
25
26         # Add here commands to clean up after the build process.
27         #-$(MAKE) clean
28         #-$(MAKE) distclean
29
30         dh_clean
31
32 install:
33 install: build
34         dh_testdir
35         dh_testroot
36         dh_clean -k
37         dh_installdirs
38
39         # Add here commands to install the package into debian/tmp.
40         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
41
42         dh_movefiles
43
44 # Build architecture-independent files here.
45 binary-indep: build install
46         dh_testdir -i
47         dh_testroot -i
48 #       dh_installdebconf -i
49         dh_installdocs -i
50         dh_installexamples -i
51         dh_installmenu -i
52 #       dh_installlogrotate -i
53 #       dh_installemacsen -i
54 #       dh_installpam -i
55 #       dh_installmime -i
56 #       dh_installinit -i
57         dh_installcron -i
58         dh_installman -i
59         dh_installinfo -i
60 #       dh_undocumented -i
61         dh_installchangelogs -i
62         dh_link -i
63         dh_compress -i
64         dh_fixperms -i
65         dh_installdeb -i
66 #       dh_perl -i
67         dh_gencontrol -i
68         dh_md5sums -i
69         dh_builddeb -i
70
71 # Build architecture-dependent files here.
72 binary-arch: build install
73         dh_testdir -a
74         dh_testroot -a
75 #       dh_installdebconf -a
76         dh_installdocs -a
77         dh_installexamples -a
78         dh_installmenu -a
79 #       dh_installlogrotate -a
80 #       dh_installemacsen -a
81 #       dh_installpam -a
82 #       dh_installmime -a
83 #       dh_installinit -a
84         dh_installcron -a
85         dh_installman -a
86         dh_installinfo -a
87 #       dh_undocumented -a
88         dh_installchangelogs -a
89         dh_strip -a
90         dh_link -a
91         dh_compress -a
92         dh_fixperms -a
93 #       dh_makeshlibs -a
94         dh_installdeb -a
95 #       dh_perl -a
96         dh_shlibdeps -a
97         dh_gencontrol -a
98         dh_md5sums -a
99         dh_builddeb -a
100
101 binary: binary-indep binary-arch
102 .PHONY: build clean binary-indep binary-arch binary install