]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r420: big monsta changes
[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=3
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_testdir -i
50         dh_testroot -i
51 #       dh_installdebconf -i
52         dh_installdocs -i
53         dh_installexamples -i
54         dh_installmenu -i
55 #       dh_installlogrotate -i
56 #       dh_installemacsen -i
57 #       dh_installpam -i
58 #       dh_installmime -i
59 #       dh_installinit -i
60         dh_installcron -i
61         dh_installman -i
62         dh_installinfo -i
63 #       dh_undocumented -i
64         dh_installchangelogs -i
65         dh_link -i
66         dh_compress -i
67         dh_fixperms -i
68         dh_installdeb -i
69 #       dh_perl -i
70         dh_gencontrol -i
71         dh_md5sums -i
72         dh_builddeb -i
73
74 # Build architecture-dependent files here.
75 binary-arch: build install
76         dh_testversion 2
77         dh_testdir -a
78         dh_testroot -a
79 #       dh_installdebconf -a
80         dh_installdocs -a
81         dh_installexamples -a
82         dh_installmenu -a
83 #       dh_installlogrotate -a
84 #       dh_installemacsen -a
85 #       dh_installpam -a
86 #       dh_installmime -a
87 #       dh_installinit -a
88         dh_installcron -a
89         dh_installman -a
90         dh_installinfo -a
91 #       dh_undocumented -a
92         dh_installchangelogs -a
93         dh_strip -a
94         dh_link -a
95         dh_compress -a
96         dh_fixperms -a
97 #       dh_makeshlibs -a
98         dh_installdeb -a
99 #       dh_perl -a
100         dh_shlibdeps -a
101         dh_gencontrol -a
102         dh_md5sums -a
103         dh_builddeb -a
104
105 binary: binary-indep binary-arch
106 .PHONY: build clean binary-indep binary-arch binary install