Imported Debian patch 1.0.11~git-20070212-1
[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         dh_clean
25
26 binary-indep: build
27 binary-arch: build
28         dh_testdir
29         dh_testroot
30         dh_clean -k
31         dh_installdirs
32         mkdir $(DEBTMP)
33         $(MAKE) DESTDIR='$(DEBTMP)' install
34         dh_install
35         dh_installdocs -A
36         dh_installdocs -pnfs-common debian/README.Debian.nfsv4
37         install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
38         install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
39         dh_installman
40         dh_link
41         dh_installchangelogs ChangeLog
42         dh_strip
43         dh_compress
44         dh_fixperms
45         dh_installdeb
46         dh_shlibdeps
47         dh_gencontrol
48         dh_md5sums
49         dh_builddeb
50
51 binary: binary-indep binary-arch
52 .PHONY: build clean binary-indep binary-arch binary