X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Frules;h=d1f160a87d7cd01de74a8ec9ae0fe44add4bf7b4;hp=8eba169cf8cd367940043ffb15816c20e5d43f06;hb=ba2d04e42f22276f0c990a4c2ce56c647ba9c235;hpb=e6b281c7a032ccb2a0f71ef983e50bf80b261dc1 diff --git a/debian/rules b/debian/rules index 8eba169..d1f160a 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,6 @@ -#!/usr/bin/make -f -# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +#! /usr/bin/make -f + +include /usr/share/quilt/quilt.make DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) @@ -10,23 +11,21 @@ DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) DEBTMP := $(shell pwd)/debian/tmp build: build-stamp -build-stamp: +build-stamp: patch dh_testdir -ifeq ($(DEB_HOST_ARCH),ia64) - patch -p1 < debian/bzero.patch -endif CFLAGS="-g -O2 -Wall" ./configure \ --mandir='$${prefix}/share/man' \ --enable-secure-statd $(MAKE) touch build-stamp -clean: +clean: unpatch dh_testdir dh_testroot rm -f build-stamp rm -rf $(DEBTMP) -$(MAKE) distclean + $(RM) utils/rquotad/rquota.h utils/rquotad/rquota_xdr.c dh_clean binary-indep: build @@ -41,8 +40,8 @@ binary-arch: build # Fix up the manpages for f in lockd statd showmount; do \ - perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \ - debian/tmp/usr/share/man/man8/$$f.8; \ + perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \ + debian/tmp/usr/share/man/man8/$$f.8; \ done; dh_installdocs -A