r2699 - in /packages/libstat-lsmode-perl/trunk/debian: changelog rules

rra at users.alioth.debian.org rra at users.alioth.debian.org
Sun May 7 20:10:13 UTC 2006


Author: rra
Date: Sun May  7 20:10:11 2006
New Revision: 2699

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=2699
Log:
* debian/rules cleanup.
  - Add build-arch and build-indep targets just in case.
  - Use a better method of optionally running make distclean.
  - Remove stamp files first in clean target.
  - Improve target dependencies.

Modified:
    packages/libstat-lsmode-perl/trunk/debian/changelog
    packages/libstat-lsmode-perl/trunk/debian/rules

Modified: packages/libstat-lsmode-perl/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libstat-lsmode-perl/trunk/debian/changelog?rev=2699&op=diff
==============================================================================
--- packages/libstat-lsmode-perl/trunk/debian/changelog (original)
+++ packages/libstat-lsmode-perl/trunk/debian/changelog Sun May  7 20:10:11 2006
@@ -1,9 +1,14 @@
 libstat-lsmode-perl (0.50-4) unstable; urgency=low
 
   * Change maintainers to the Debian Perl Group.
+  * debian/rules cleanup.
+    - Add build-arch and build-indep targets just in case.
+    - Use a better method of optionally running make distclean.
+    - Remove stamp files first in clean target.
+    - Improve target dependencies.
   * Update standards version to 3.7.2 (no changes required).
 
- --
+ -- Russ Allbery <rra at debian.org>  Sun,  7 May 2006 13:08:57 -0700
 
 libstat-lsmode-perl (0.50-3) unstable; urgency=low
 

Modified: packages/libstat-lsmode-perl/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libstat-lsmode-perl/trunk/debian/rules?rev=2699&op=diff
==============================================================================
--- packages/libstat-lsmode-perl/trunk/debian/rules (original)
+++ packages/libstat-lsmode-perl/trunk/debian/rules Sun May  7 20:10:11 2006
@@ -12,7 +12,9 @@
 TMP      = $(CURDIR)/debian/$(PACKAGE)
 PERL    ?= /usr/bin/perl
 
-build: build-stamp
+build: build-arch build-indep
+build-arch:
+build-indep: build-stamp
 build-stamp:
 	dh_testdir
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
@@ -22,13 +24,12 @@
 clean:
 	dh_testdir
 	dh_testroot
-ifeq (Makefile,$(wildcard Makefile))
-	$(MAKE) distclean
-endif
-	dh_clean build-stamp install-stamp
+	rm -f build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_clean
 
 install: install-stamp
-install-stamp:
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
@@ -37,8 +38,9 @@
 	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
 	touch install-stamp
 
-# Build architecture-independent files here.
-binary-indep: build install
+binary: binary-arch binary-indep
+binary-arch:
+binary-indep: build-stamp install-stamp
 	dh_testdir
 	dh_testroot
 	dh_installdocs README
@@ -54,6 +56,5 @@
 	dh_md5sums
 	dh_builddeb
 
-binary-arch:
-binary: binary-arch binary-indep
-.PHONY: build clean binary-arch binary-indep binary
+.PHONY: binary binary-arch binary-indep build build-arch build-indep clean
+.PHONY: install




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