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