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