]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.indep
r337: * Copyright update: files in the examples directory are public domain.
[debhelper.git] / examples / rules.indep
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. 
3 # This file is public domain software, originally written 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
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 # Build architecture-independent files here.
43 binary-indep: build install
44 #       dh_testversion
45         dh_testdir
46         dh_testroot
47 #       dh_installdebconf
48         dh_installdocs
49         dh_installexamples
50         dh_installmenu
51 #       dh_installemacsen
52 #       dh_installpam
53 #       dh_installmime
54 #       dh_installinit
55         dh_installcron
56 #       dh_installmanpages
57         dh_installinfo
58 #       dh_undocumented
59         dh_installchangelogs
60         dh_link
61         dh_compress
62         dh_fixperms
63         # You may want to make some executables suid here.
64         dh_suidregister
65         dh_installdeb
66 #       dh_perl
67         dh_gencontrol
68         dh_md5sums
69         dh_builddeb
70
71 # Build architecture-dependent files here.
72 binary-arch: build install
73 # We have nothing to do by default.
74
75 binary: binary-indep binary-arch
76 .PHONY: build clean binary-indep binary-arch binary install