]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r295: * Corrected a path name in dh_installxfonts. Closes: #48315
[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 
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_installinit
65         dh_installcron
66 #       dh_installmanpages
67         dh_installinfo
68 #       dh_undocumented
69         dh_installchangelogs
70         dh_link
71         dh_compress
72         dh_fixperms
73         # You may want to make some executables suid here.
74         dh_suidregister
75         dh_installdeb
76 #       dh_perl
77         dh_gencontrol
78         dh_md5sums
79         dh_builddeb
80
81 # Build architecture-dependent files here.
82 # Pass -a to all debhelper commands in this target to reduce clutter.
83 binary-arch: DH_OPTIONS=-a
84 binary-arch: build install
85         # Need this version of debhelper for DH_OPTIONS to work.
86         dh_testversion 1.1.17
87         dh_testdir
88         dh_testroot
89 #       dh_installdebconf
90         dh_installdocs
91         dh_installexamples
92         dh_installmenu
93 #       dh_installemacsen
94 #       dh_installpam
95 #       dh_installinit
96         dh_installcron
97 #       dh_installmanpages
98         dh_installinfo
99 #       dh_undocumented
100         dh_installchangelogs
101         dh_strip
102         dh_link
103         dh_compress
104         dh_fixperms
105         # You may want to make some executables suid here.
106         dh_suidregister
107         dh_installdeb
108 #       dh_makeshlibs
109 #       dh_perl
110         dh_shlibdeps
111         dh_gencontrol
112         dh_md5sums
113         dh_builddeb
114
115 binary: binary-indep binary-arch
116 .PHONY: build clean binary-indep binary-arch binary install