Imported Debian patch 1.5-16
[debian/pax] / debian / rules
1 #!/usr/bin/make -f
2
3 # comment this to turn off verbose mode.
4 export DH_VERBOSE=1
5
6 build: build-stamp
7 build-stamp:
8         dh_testdir
9
10         $(MAKE)
11
12         touch build-stamp
13
14 clean:
15         dh_testdir
16         dh_testroot
17         rm -f build-stamp install-stamp
18
19         [ ! -f Makefile ] || $(MAKE) realclean
20
21         dh_clean
22
23 install: install-stamp
24 install-stamp: build-stamp
25         dh_testdir
26         dh_testroot
27         dh_clean -k
28         dh_installdirs
29
30         $(MAKE) prefix=`pwd`/debian/pax/usr install
31
32         touch install-stamp
33
34 # Build architecture-independent files here.
35 binary-indep: build install
36
37 # Build architecture-dependent files here.
38 binary-arch: build install
39         dh_testdir
40         dh_testroot
41         dh_installdocs
42         dh_installexamples
43         dh_installmenu
44         dh_installcron
45         dh_installmanpages cpio.1 tar.1
46         dh_installchangelogs
47         dh_link
48         dh_strip
49         dh_compress
50         dh_fixperms
51         dh_installdeb
52         dh_shlibdeps
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 source diff:                                                                  
58         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary install