]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
37f7835a6e16221d11fdfb28b7bf24c3bcf2be60
[debhelper.git] / examples / rules.multi
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. 
3 # GPL 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 
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
50 # Build architecture-independent files here.
51 # Pass -i to all debhelper commands in this target to reduce clutter.
52 binary-indep: DH_OPTIONS=-i
53 binary-indep: build install
54         # Need this version of debhelper for DH_OPTIONS to work.
55         dh_testversion 1.1.17
56         dh_testdir
57         dh_testroot
58 #       dh_installdebconf
59         dh_installdocs
60         dh_installexamples
61         dh_installmenu
62 #       dh_installemacsen
63 #       dh_installpam
64 #       dh_installmime
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_installmime
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