]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules
r3: Initial revision
[debhelper.git] / examples / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3
4 build: build-stamp
5 build-stamp:
6         dh_testdir
7         # Add here commands to compile the pacckage.
8         #$(MAKE)
9         touch build-stamp
10
11 clean:
12         dh_testdir
13         dh_testroot
14         dh_cleantmp
15         # Add here commands to clean up after the build process.
16         #-$(MAKE) distclean
17         rm -f build-stamp
18
19 # Build architecture-independent files here.
20 binary-indep: build
21         # We have nothing to do by default.
22
23 # Build architecture-dependent files here.
24 binary-arch: build
25         dh_testdir
26         dh_testroot
27         dh_cleantmp
28         # Add here commands to install the files into debian/tmp
29         #$(MAKE) PREFIX=debian/tmp install
30         dh_installdocs
31         dh_installexamples
32         dh_installmenu
33         dh_installmanpages
34         dh_installchangelogs
35         dh_compress
36         dh_installdebfiles
37         dh_fixperms
38         dh_builddeb
39
40 binary: binary-indep binary-arch
41 .PHONY: build clean binary-indep binary-arch binary