]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.indep
r284: * Enhanced debconf support -- the database is now cleaned up on package
[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: install-stamp
34 install-stamp: build-stamp
35         dh_testdir
36         dh_testroot
37         dh_clean -k
38         dh_installdirs
39
40         # Add here commands to install the package into debian/tmp.
41         #$(MAKE) prefix=`pwd`/debian/tmp/usr install
42
43         touch install-stamp
44
45 # Build architecture-independent files here.
46 binary-indep: build install
47 #       dh_testversion
48         dh_testdir
49         dh_testroot
50 #       dh_installdebconf
51         dh_installdocs
52         dh_installexamples
53         dh_installmenu
54 #       dh_installemacsen
55 #       dh_installpam
56 #       dh_installinit
57         dh_installcron
58 #       dh_installmanpages
59         dh_installinfo
60 #       dh_undocumented
61         dh_installchangelogs
62         dh_link
63         dh_compress
64         dh_fixperms
65         # You may want to make some executables suid here.
66         dh_suidregister
67         dh_installdeb
68 #       dh_perl
69         dh_gencontrol
70         dh_md5sums
71         dh_builddeb
72
73 # Build architecture-dependent files here.
74 binary-arch: build install
75 # We have nothing to do by default.
76
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install