]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r364: * Whoops, I forgot to add v3 to cvs, so it was missing from a few
[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 # This is the debhelper compatibility version to use.
13 export DH_COMPAT=2
14
15 build: 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 
28
29         # Add here commands to clean up after the build process.
30         #-$(MAKE) clean
31         #-$(MAKE) distclean
32
33         dh_clean
34
35 install:
36 install: build
37         dh_testdir
38         dh_testroot
39         dh_clean -k
40         dh_installdirs
41
42         # Add here commands to install the package into debian/tmp.
43         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
44
45         dh_movefiles
46
47 # Build architecture-independent files here.
48 binary-indep: build install
49         dh_testversion 2
50         dh_testdir -i
51         dh_testroot -i
52 #       dh_installdebconf -i
53         dh_installdocs -i
54         dh_installexamples -i
55         dh_installmenu -i
56 #       dh_installlogrotate -i
57 #       dh_installemacsen -i
58 #       dh_installpam -i
59 #       dh_installmime -i
60 #       dh_installinit -i
61         dh_installcron -i
62 #       dh_installmanpages -i
63         dh_installinfo -i
64 #       dh_undocumented -i
65         dh_installchangelogs -i
66         dh_link -i
67         dh_compress -i
68         dh_fixperms -i
69         # You may want to make some executables suid here.
70         dh_suidregister -i
71         dh_installdeb -i
72 #       dh_perl -i
73         dh_gencontrol -i
74         dh_md5sums -i
75         dh_builddeb -i
76
77 # Build architecture-dependent files here.
78 binary-arch: build install
79         dh_testversion 2
80         dh_testdir -a
81         dh_testroot -a
82 #       dh_installdebconf -a
83         dh_installdocs -a
84         dh_installexamples -a
85         dh_installmenu -a
86 #       dh_installlogrotate -a
87 #       dh_installemacsen -a
88 #       dh_installpam -a
89 #       dh_installmime -a
90 #       dh_installinit -a
91         dh_installcron -a
92 #       dh_installmanpages -a
93         dh_installinfo -a
94 #       dh_undocumented -a
95         dh_installchangelogs -a
96         dh_strip -a
97         dh_link -a
98         dh_compress -a
99         dh_fixperms -a
100         # You may want to make some executables suid here.
101         dh_suidregister -a
102         dh_installdeb -a
103 #       dh_makeshlibs -a
104 #       dh_perl -a
105         dh_shlibdeps -a
106         dh_gencontrol -a
107         dh_md5sums -a
108         dh_builddeb -a
109
110 binary: binary-indep binary-arch
111 .PHONY: build clean binary-indep binary-arch binary install