]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.indep
r506: * Introduced the debian/compat file. This is the new, preferred way to say
[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 build: build-stamp
11 build-stamp:
12         dh_testdir
13
14         # Add here commands to compile the package.
15         #$(MAKE)
16
17         touch build-stamp
18
19 clean:
20         dh_testdir
21         dh_testroot
22         rm -f build-stamp
23
24         # Add here commands to clean up after the build process.
25         #-$(MAKE) clean
26         #-$(MAKE) distclean
27
28         dh_clean
29
30 install: build
31         dh_testdir
32         dh_testroot
33         dh_clean -k
34         dh_installdirs
35
36         # Add here commands to install the package into debian/<packagename>.
37         #$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
38
39 # Build architecture-independent files here.
40 binary-indep: build install
41         dh_testdir
42         dh_testroot
43 #       dh_installdebconf
44         dh_installdocs
45         dh_installexamples
46         dh_installmenu
47 #       dh_installlogrotate
48 #       dh_installemacsen
49 #       dh_installpam
50 #       dh_installmime
51 #       dh_installinit
52         dh_installcron
53 #       dh_installman
54         dh_installinfo
55 #       dh_undocumented
56         dh_installchangelogs
57         dh_link
58         dh_compress
59         dh_fixperms
60         dh_installdeb
61 #       dh_perl
62         dh_gencontrol
63         dh_md5sums
64         dh_builddeb
65
66 # Build architecture-dependent files here.
67 binary-arch: build install
68 # We have nothing to do by default.
69
70 binary: binary-indep binary-arch
71 .PHONY: build clean binary-indep binary-arch binary install