]> git.donarmstrong.com Git - debhelper.git/blob - examples/rules.arch
initial version of dh, with option parsing and sequences in place
[debhelper.git] / examples / rules.arch
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 dependent.
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 # We have nothing to do by default.
42
43 # Build architecture-dependent files here.
44 binary-arch: build install
45         dh_testdir
46         dh_testroot
47         dh_installchangelogs
48         dh_installdocs
49         dh_installexamples
50 #       dh_install
51 #       dh_installmenu
52 #       dh_installdebconf       
53 #       dh_installlogrotate
54 #       dh_installemacsen
55 #       dh_installcatalogs
56 #       dh_installpam
57 #       dh_installmime
58 #       dh_installinit
59 #       dh_installcron
60 #       dh_installinfo
61 #       dh_installwm
62 #       dh_installudev
63 #       dh_lintian
64 #       dh_undocumented
65         dh_installman
66         dh_link
67         dh_strip
68         dh_compress
69         dh_fixperms
70 #       dh_perl
71 #       dh_python
72 #       dh_makeshlibs
73         dh_installdeb
74         dh_shlibdeps
75         dh_gencontrol
76         dh_md5sums
77         dh_builddeb
78
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install