r12575 - in /trunk/libxml-sax-expat-perl/debian: changelog rules

ntyni at users.alioth.debian.org ntyni at users.alioth.debian.org
Sat Jan 12 07:48:40 UTC 2008


Author: ntyni
Date: Sat Jan 12 07:48:39 2008
New Revision: 12575

URL: http://svn.debian.org/wsvn/?sc=1&rev=12575
Log:
* Make the debian/rules install target depend on the build target and use
  stamp files to avoid unnecessary remaking.

Modified:
    trunk/libxml-sax-expat-perl/debian/changelog
    trunk/libxml-sax-expat-perl/debian/rules

Modified: trunk/libxml-sax-expat-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-expat-perl/debian/changelog?rev=12575&op=diff
==============================================================================
--- trunk/libxml-sax-expat-perl/debian/changelog (original)
+++ trunk/libxml-sax-expat-perl/debian/changelog Sat Jan 12 07:48:39 2008
@@ -29,6 +29,8 @@
     at build time.
   * Get the package name from dh_listpackages output instead of looking at
     the name of the build directory.
+  * Make the debian/rules install target depend on the build target and use
+    stamp files to avoid unnecessary remaking.
 
  -- Roberto C. Sanchez <roberto at debian.org>  Thu, 10 Jan 2008 22:01:36 -0500
 

Modified: trunk/libxml-sax-expat-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-expat-perl/debian/rules?rev=12575&op=diff
==============================================================================
--- trunk/libxml-sax-expat-perl/debian/rules (original)
+++ trunk/libxml-sax-expat-perl/debian/rules Sat Jan 12 07:48:39 2008
@@ -10,11 +10,13 @@
 
 PACKAGE=$(shell dh_listpackages)
 
-build:
+build: build-stamp
+build-stamp:
 	dh_testdir
 	SKIP_SAX_INSTALL=1 perl Makefile.PL verbose INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
+	touch $@
 
 clean:
 	dh_testdir
@@ -23,7 +25,8 @@
 	[ ! -f Makefile ] || $(MAKE) clean
 	dh_clean Makefile.old
 
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
@@ -31,6 +34,8 @@
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)
 
 	[ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5
+
+	touch $@
 
 binary-arch:;
 binary-indep: build install




More information about the Pkg-perl-cvs-commits mailing list