]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules
r22: Initial Import
[debhelper.git] / examples / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 build: build-stamp
8 build-stamp:
9         dh_testdir
10         # Add here commands to compile the pacckage.
11         #$(MAKE)
12         touch build-stamp
13
14 clean:
15         dh_testdir
16         dh_testroot
17         rm -f build-stamp
18         dh_clean
19         # Add here commands to clean up after the build process.
20         #-$(MAKE) distclean
21
22 # Build architecture-independent files here.
23 binary-indep: build
24 # We have nothing to do by default.
25
26 # Build architecture-dependent files here.
27 binary-arch: build
28         dh_testdir
29         dh_testroot
30         dh_clean
31         dh_installdirs
32         # Add here commands to install the files into debian/tmp
33         #$(MAKE) PREFIX=debian/tmp install
34         dh_installdocs
35         dh_installexamples
36         dh_installmenu
37         dh_installcron
38         dh_installmanpages
39 #       dh_undocumented
40         dh_installchangelogs
41         dh_strip
42         dh_compress
43         dh_fixperms
44         dh_suidregister
45         dh_installdebfiles
46 #       dh_makeshlibs
47         dh_du
48         dh_md5sums
49         dh_builddeb
50
51 binary: binary-indep binary-arch
52 .PHONY: build clean binary-indep binary-arch binary