]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.indep
r287: * Fiddlesticks. The neat make trick I was using in rules.multi2 failed if
[debhelper.git] / examples / rules.indep
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. 
3 # GNU copyright 1997 to 1999 by Joey Hess.
4 #
5 # This version is for packages that are architecture independent.
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 # This is the debhelper compatability version to use.
11 export DH_COMPAT=1
12
13 build: build-stamp
14 build-stamp:
15         dh_testdir
16
17         # Add here commands to compile the package.
18         #$(MAKE)
19
20         touch build-stamp
21
22 clean:
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp install-stamp
26
27         # Add here commands to clean up after the build process.
28         #-$(MAKE) clean
29         #-$(MAKE) distclean
30
31         dh_clean
32
33 install: build
34         dh_testdir
35         dh_testroot
36         dh_clean -k
37         dh_installdirs
38
39         # Add here commands to install the package into debian/tmp.
40         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
41
42         touch install-stamp
43
44 # Build architecture-independent files here.
45 binary-indep: build install
46 #       dh_testversion
47         dh_testdir
48         dh_testroot
49 #       dh_installdebconf
50         dh_installdocs
51         dh_installexamples
52         dh_installmenu
53 #       dh_installemacsen
54 #       dh_installpam
55 #       dh_installinit
56         dh_installcron
57 #       dh_installmanpages
58         dh_installinfo
59 #       dh_undocumented
60         dh_installchangelogs
61         dh_link
62         dh_compress
63         dh_fixperms
64         # You may want to make some executables suid here.
65         dh_suidregister
66         dh_installdeb
67 #       dh_perl
68         dh_gencontrol
69         dh_md5sums
70         dh_builddeb
71
72 # Build architecture-dependent files here.
73 binary-arch: build install
74 # We have nothing to do by default.
75
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary install