[PATCH] Cleanup rules

Loïc Minier lool at dooz.org
Fri Jun 27 17:36:12 UTC 2008


---
 debian/rules |   29 ++++-------------------------
 1 files changed, 4 insertions(+), 25 deletions(-)

diff --git a/debian/rules b/debian/rules
index 40d082e..b309f07 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,34 +1,18 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
 
 # This is the debhelper compatability version to use.
 ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
 
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
-
-	touch configure-stamp
-
-build: configure-stamp build-stamp 
+build: build-stamp
 build-stamp:
 	dh_testdir
-
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
+	rm -f build-stamp
 	-$(MAKE) clean
-
 	dh_clean
 
 install: build
@@ -36,13 +20,10 @@ install: build
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-
-	# Add here commands to install the package into debian/build-package.
 	$(MAKE) check
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/pbuilder
 	dh_movefiles -ppbuilder-uml --sourcedir=debian/pbuilder
 
-# Build architecture-independent files here.
 binary-indep: build install
 	dh_testdir -i
 	dh_testroot -i
@@ -58,7 +39,6 @@ binary-indep: build install
 	dh_md5sums -i
 	dh_builddeb -i
 
-# Build architecture-dependent files here.
 binary-arch: build install
 ifneq (,$(findstring ${ARCH},i386 amd64))
 	dh_testdir -a
@@ -75,6 +55,5 @@ ifneq (,$(findstring ${ARCH},i386 amd64))
 	dh_builddeb -a
 endif
 
-
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install
-- 
1.5.6.3


--1yeeQ81UyVL57Vl7
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0008-Pass-s-to-dh_-instead-of-checking-dpkg-architectur.patch"



More information about the Pbuilder-maint mailing list