2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Uncomment this to turn on verbose mode.
7 # You can use gcc 2.7.2 if it's installed,
8 # but I don't think that's necessary any more.
9 #SETGCC := CC=$(notdir $(shell which gcc272 gcc 2>/dev/null | sed '1q'))
12 DEBTMP := $(shell pwd)/debian/tmp
17 # Add here commands to compile the package.
18 $(SETGCC) ./configure \
19 --mandir='$${prefix}/share/man' \
28 # Add here commands to clean up after the build process.
32 # Build architecture-independent files here.
34 # We have nothing to do by default.
36 # Build architecture-dependent files here.
42 # Add here commands to install the files into debian/tmp
43 $(MAKE) install_prefix='$(DEBTMP)' install
47 for f in lockd statd showmount; do \
48 mv tmp/usr/sbin/*$$f nfs-common/sbin; \
49 perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
50 nfs-common/usr/share/man/man8/$$f.8; \
52 rm -f tmp/usr/sbin/*quota*; \
53 rm -f tmp/usr/share/man/man8/*quota*; \
54 rm -rf tmp/var/lib/nfs/*
56 dh_installdocs -A README
63 dh_installchangelogs ChangeLog
76 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
78 binary: binary-indep binary-arch
79 .PHONY: build clean binary-indep binary-arch binary