]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.multi
r281: * dh_installdocs: create the compatability symlink before calling
[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_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_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