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 rpc.lockd rpc.statd showmount; do \
48 mv tmp/usr/sbin/$$f nfs-common/sbin/$$f; \
50 rm -f tmp/usr/sbin/*quota*; \
51 rm -f tmp/usr/share/man/man8/*quota*; \
52 rm -rf tmp/var/lib/nfs/*
54 dh_installdocs ChangeLog README
74 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary