Tweak debian/rules to match the Makefile changes
[abcde.git] / debian / rules
1 #!/usr/bin/make -f
2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 build: build-arch build-indep
10 build-arch: build-stamp
11 build-indep: build-stamp
12 build-stamp:
13         dh_testdir
14
15         # Add here commands to compile the package.
16         $(MAKE) 
17
18         touch build-stamp
19
20 clean:
21         dh_testdir
22         dh_testroot
23         rm -f build-stamp install-stamp
24
25         # Add here commands to clean up after the build process.
26         [ ! -f Makefile ] || $(MAKE) clean
27
28         dh_clean
29
30 install: install-stamp
31 install-stamp: build-stamp
32         dh_testdir
33         dh_testroot
34         dh_clean -k
35         dh_installdirs
36
37         # Add here commands to install the package into debian/abcde.
38         $(MAKE) install DESTDIR=`pwd`/debian/abcde prefix=/usr sysconfdir=/etc docdir=/usr/share/doc/abcde
39         rm -f `pwd`/debian/abcde/usr/share/doc/abcde/COPYING*
40         install -d `pwd`/debian/abcde/usr/share/doc/abcde/examples
41         install -m 644 examples/* `pwd`/debian/abcde/usr/share/doc/abcde/examples
42
43         touch install-stamp
44
45 # Build architecture-independent files here.
46 binary-indep: build install
47 #       dh_testversion
48         dh_testdir
49         dh_testroot
50         dh_installdocs
51         dh_installexamples
52         dh_installmenu
53         dh_installman
54         dh_installchangelogs 
55         dh_link
56         dh_strip
57         dh_compress
58         dh_fixperms
59         dh_installdeb
60         dh_shlibdeps
61         dh_gencontrol
62 #       dh_makeshlibs
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 source diff:                                                                  
71         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
72
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary