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