]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r3: Initial revision
[debhelper.git] / examples / rules.multi
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3 # This version is for a hypothetical package that builds an
4 # architecture-dependant package, as well as an architecture-independant
5 # package.
6
7 # Uncomment this to turn on verbose mode. 
8 #export DH_VERBOSE=1
9
10 build: build-stamp
11 build-stamp:
12         dh_testdir
13         # Add here commands to compile the pacckage.
14         #$(MAKE)
15         touch build-stamp
16
17 clean:
18         dh_testdir
19         dh_testroot
20         rm -f build-stamp
21         dh_clean
22         # Add here commands to clean up after the build process.
23         #-$(MAKE) distclean
24
25 # Build architecture-independent files here.
26 binary-indep: build
27         dh_testdir -i
28         dh_testroot -i
29         dh_clean -i
30         # Add here commands to install the files into debian/tmp
31         #$(MAKE) PREFIX=debian/tmp install
32         dh_installdocs -i
33         dh_installexamples -i
34         dh_installmenu -i
35 #       dh_installmanpages -i
36         dh_installchangelogs -i
37         dh_compress -i
38         dh_installdebfiles -i
39         dh_fixperms -i
40         dh_builddeb -i
41
42 # Build architecture-dependent files here.
43 binary-arch: build
44         dh_testdir -a
45         dh_testroot -a
46         dh_clean -a
47         # Add here commands to install the files into debian/tmp
48         #$(MAKE) PREFIX=debian/tmp install
49         dh_installdocs -a
50         dh_installexamples -a
51         dh_installmenu -a
52         dh_installmanpages -a
53         dh_installchangelogs -a
54         dh_compress -a
55         dh_installdebfiles -a
56         dh_fixperms -a
57         dh_builddeb -a
58
59 binary: binary-indep binary-arch
60 .PHONY: build clean binary-indep binary-arch binary