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' \
33 [ ! -f Makefile ] || $(MAKE) distclean
43 $(MAKE) DESTDIR='$(DEBTMP)' install
46 dh_installdocs -pnfs-common debian/README.Debian.nfsv4
47 install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
48 install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
51 dh_installchangelogs ChangeLog
55 chmod u+s debian/nfs-common/sbin/mount.nfs
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary