2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
5 DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
7 DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
10 DEBTMP := $(shell pwd)/debian/tmp
15 ifeq ($(DEB_HOST_ARCH),ia64)
16 patch -p1 < debian/bzero.patch
18 CFLAGS="-g -O2 -Wall" ./configure \
19 --mandir='$${prefix}/share/man' \
39 $(MAKE) DESTDIR='$(DEBTMP)' install
43 for f in lockd statd showmount; do \
44 perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
45 debian/tmp/usr/share/man/man8/$$f.8; \
49 dh_installdocs -pnfs-common debian/README.Debian.nfsv4
50 install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
51 install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
54 dh_installchangelogs ChangeLog
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary