3 # Parsing of DEB_BUILD_OPTIONS flags.
4 # Note that nostrip is handled automatically by debhelper.
6 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
11 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
12 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
13 MAKEFLAGS += -j$(NUMJOBS)
17 DEBTMP := $(CURDIR)/debian/tmp
22 CFLAGS="$(CFLAGS)" ./configure \
23 --mandir='$${prefix}/share/man' \
35 [ ! -f Makefile ] || $(MAKE) distclean
45 $(MAKE) DESTDIR='$(DEBTMP)' install
48 dh_installdocs -pnfs-common debian/README.Debian.nfsv4
49 install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
50 install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
53 dh_installchangelogs ChangeLog
58 chmod u+s debian/nfs-common/sbin/mount.nfs
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary