]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r287: * Fiddlesticks. The neat make trick I was using in rules.multi2 failed if
[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: DH_OPTIONS=
39 install: build
40         dh_testdir
41         dh_testroot
42         dh_clean -k
43         dh_installdirs
44
45         # Add here commands to install the package into debian/tmp.
46         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
47
48         dh_movefiles
49         touch install-stamp
50
51 # Build architecture-independent files here.
52 # Pass -i to all debhelper commands in this target to reduce clutter.
53 binary-indep: DH_OPTIONS=-i
54 binary-indep: build install
55         # Need this version of debhelper for DH_OPTIONS to work.
56         dh_testversion 1.1.17
57         dh_testdir
58         dh_testroot
59 #       dh_installdebconf
60         dh_installdocs
61         dh_installexamples
62         dh_installmenu
63 #       dh_installemacsen
64 #       dh_installpam
65 #       dh_installinit
66         dh_installcron
67 #       dh_installmanpages
68         dh_installinfo
69 #       dh_undocumented
70         dh_installchangelogs
71         dh_link
72         dh_compress
73         dh_fixperms
74         # You may want to make some executables suid here.
75         dh_suidregister
76         dh_installdeb
77 #       dh_perl
78         dh_gencontrol
79         dh_md5sums
80         dh_builddeb
81
82 # Build architecture-dependent files here.
83 # Pass -a to all debhelper commands in this target to reduce clutter.
84 binary-arch: DH_OPTIONS=-a
85 binary-arch: build install
86         # Need this version of debhelper for DH_OPTIONS to work.
87         dh_testversion 1.1.17
88         dh_testdir
89         dh_testroot
90 #       dh_installdebconf
91         dh_installdocs
92         dh_installexamples
93         dh_installmenu
94 #       dh_installemacsen
95 #       dh_installpam
96 #       dh_installinit
97         dh_installcron
98 #       dh_installmanpages
99         dh_installinfo
100 #       dh_undocumented
101         dh_installchangelogs
102         dh_strip
103         dh_link
104         dh_compress
105         dh_fixperms
106         # You may want to make some executables suid here.
107         dh_suidregister
108         dh_installdeb
109 #       dh_makeshlibs
110 #       dh_perl
111         dh_shlibdeps
112         dh_gencontrol
113         dh_md5sums
114         dh_builddeb
115
116 binary: binary-indep binary-arch
117 .PHONY: build clean binary-indep binary-arch binary install