]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules
19b5777a4c35362d87206b07255edcfa9a4eea75
[debhelper.git] / examples / rules
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 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatibility version to use.
9 export DH_COMPAT=2
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
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: build
32         dh_testdir
33         dh_testroot
34         dh_clean -k
35         dh_installdirs
36
37         # Add here commands to install the package into debian/<packagename>
38         #$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
39
40 # Build architecture-independent files here.
41 binary-indep: build install
42 # We have nothing to do by default.
43
44 # Build architecture-dependent files here.
45 binary-arch: build install
46         dh_testversion 2
47         dh_testdir
48         dh_testroot
49 #       dh_installdebconf       
50         dh_installdocs
51         dh_installexamples
52         dh_installmenu
53 #       dh_installlogrotate
54 #       dh_installemacsen
55 #       dh_installpam
56 #       dh_installmime
57 #       dh_installinit
58         dh_installcron
59         dh_installmanpages
60         dh_installinfo
61 #       dh_undocumented
62         dh_installchangelogs
63         dh_link
64         dh_strip
65         dh_compress
66         dh_fixperms
67         # You may want to make some executables suid here.
68         dh_suidregister
69 #       dh_makeshlibs
70         dh_installdeb
71 #       dh_perl
72         dh_shlibdeps
73         dh_gencontrol
74         dh_md5sums
75         dh_builddeb
76
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install