Imported Debian patch 1.0.11~git-20060117-2
[nfs-utils.git] / debian / rules
1 #! /usr/bin/make -f
2
3 include /usr/share/quilt/quilt.make
4
5 # Temporary root
6 DEBTMP := $(CURDIR)/debian/tmp
7
8 build: patch build-stamp
9 build-stamp:
10         dh_testdir
11         CFLAGS="-g -O2 -Wall" ./configure \
12                 --mandir='$${prefix}/share/man' \
13                 --enable-secure-statd \
14                 --with-tcp-wrappers
15         $(MAKE)
16         touch build-stamp
17
18 clean: unpatch
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp
22         rm -rf $(DEBTMP)
23         -$(MAKE) distclean
24         $(RM) utils/rquotad/rquota.h utils/rquotad/rquota_xdr.c
25         dh_clean
26
27 binary-indep: build
28 binary-arch: build
29         dh_testdir
30         dh_testroot
31         dh_clean -k
32         dh_installdirs
33         mkdir $(DEBTMP)
34         $(MAKE) DESTDIR='$(DEBTMP)' install
35         dh_install
36         dh_installdocs -A
37         dh_installdocs -pnfs-common debian/README.Debian.nfsv4
38         install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
39         install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
40         dh_installman
41         dh_link
42         dh_installchangelogs ChangeLog
43         dh_strip
44         dh_compress
45         dh_fixperms
46         dh_installdeb
47         dh_shlibdeps
48         dh_gencontrol
49         dh_md5sums
50         dh_builddeb
51
52 binary: binary-indep binary-arch
53 .PHONY: build clean binary-indep binary-arch binary