Imported Debian patch 2.5-1
[debian/cpmtools] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 configure: configure-stamp
7 configure-stamp:
8         dh_testdir
9         ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
10                 --datadir=/etc/cpmtools
11         touch configure-stamp
12
13 build: build-stamp
14
15 build-stamp: configure-stamp 
16         dh_testdir
17         $(MAKE)
18         touch build-stamp
19
20 clean:
21         dh_testdir
22         dh_testroot
23         rm -f build-stamp configure-stamp
24         -$(MAKE) distclean
25
26         -test -r /usr/share/misc/config.sub && \
27                 cp -f /usr/share/misc/config.sub config.sub
28         -test -r /usr/share/misc/config.guess && \
29                 cp -f /usr/share/misc/config.guess config.guess
30
31         dh_clean
32
33 install: build
34         dh_testdir
35         dh_testroot
36         dh_clean -k
37         dh_installdirs
38         $(MAKE) install prefix=$(CURDIR)/debian/cpmtools/usr 
39
40 # Build architecture-independent files here.
41 binary-indep: build install
42
43 # Build architecture-dependent files here.
44 binary-arch: build install
45         dh_testdir
46         dh_testroot
47         dh_installdocs
48         dh_installexamples
49         dh_installmenu
50         dh_installcron
51         dh_installman
52         dh_installinfo
53         dh_installchangelogs 
54         dh_link
55         dh_strip
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_shlibdeps
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary install configure