]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r285: * Fixed quoting problem in examples/rules.multi (Closes: #46254)
[debhelper.git] / examples / rules.multi
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. 
3 # GNU copyright 1997 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 compatability version to use.
13 export DH_COMPAT=1
14
15 # This has to be exported to make some magic below work.
16 export DH_OPTIONS
17
18 build: build-stamp
19 build-stamp:
20         dh_testdir
21
22         # Add here commands to compile the package.
23         #$(MAKE)
24
25         touch build-stamp
26
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp install-stamp
31
32         # Add here commands to clean up after the build process.
33         #-$(MAKE) clean
34         #-$(MAKE) distclean
35
36         dh_clean
37
38 install: install-stamp
39 install-stamp: DH_OPTIONS=
40 install-stamp: build-stamp
41         dh_testdir
42         dh_testroot
43         dh_clean -k
44         dh_installdirs
45
46         # Add here commands to install the package into debian/tmp.
47         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
48
49         dh_movefiles
50         touch install-stamp
51
52 # Build architecture-independent files here.
53 # Pass -i to all debhelper commands in this target to reduce clutter.
54 binary-indep: DH_OPTIONS=-i
55 binary-indep: build install
56         # Need this version of debhelper for DH_OPTIONS to work.
57         dh_testversion 1.1.17
58         dh_testdir
59         dh_testroot
60 #       dh_installdebconf
61         dh_installdocs
62         dh_installexamples
63         dh_installmenu
64 #       dh_installemacsen
65 #       dh_installpam
66 #       dh_installinit
67         dh_installcron
68 #       dh_installmanpages
69         dh_installinfo
70 #       dh_undocumented
71         dh_installchangelogs
72         dh_link
73         dh_compress
74         dh_fixperms
75         # You may want to make some executables suid here.
76         dh_suidregister
77         dh_installdeb
78 #       dh_perl
79         dh_gencontrol
80         dh_md5sums
81         dh_builddeb
82
83 # Build architecture-dependent files here.
84 # Pass -a to all debhelper commands in this target to reduce clutter.
85 binary-arch: DH_OPTIONS=-a
86 binary-arch: build install
87         # Need this version of debhelper for DH_OPTIONS to work.
88         dh_testversion 1.1.17
89         dh_testdir
90         dh_testroot
91 #       dh_installdebconf
92         dh_installdocs
93         dh_installexamples
94         dh_installmenu
95 #       dh_installemacsen
96 #       dh_installpam
97 #       dh_installinit
98         dh_installcron
99 #       dh_installmanpages
100         dh_installinfo
101 #       dh_undocumented
102         dh_installchangelogs
103         dh_strip
104         dh_link
105         dh_compress
106         dh_fixperms
107         # You may want to make some executables suid here.
108         dh_suidregister
109         dh_installdeb
110 #       dh_makeshlibs
111 #       dh_perl
112         dh_shlibdeps
113         dh_gencontrol
114         dh_md5sums
115         dh_builddeb
116
117 binary: binary-indep binary-arch
118 .PHONY: build clean binary-indep binary-arch binary install