r9528 - in /trunk/libfont-ttf-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sat Nov 17 20:38:04 UTC 2007


Author: gregoa-guest
Date: Sat Nov 17 20:38:03 2007
New Revision: 9528

URL: http://svn.debian.org/wsvn/?sc=1&rev=9528
Log:
debian/rules:
  - Use $(CURDIR) instead of `pwd`.
  - Move dh_clean before make distclean.
  - Create install and install-stamp targets.
  - Remove $(MAKE) tests (there are no tests).
  - Only call $(MAKE) distclean if we have a Makefile (and stop creating
    one just for cleaning).

Modified:
    trunk/libfont-ttf-perl/debian/changelog
    trunk/libfont-ttf-perl/debian/rules

Modified: trunk/libfont-ttf-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libfont-ttf-perl/debian/changelog?rev=9528&op=diff
==============================================================================
--- trunk/libfont-ttf-perl/debian/changelog (original)
+++ trunk/libfont-ttf-perl/debian/changelog Sat Nov 17 20:38:03 2007
@@ -4,6 +4,13 @@
   * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
     field (source stanza); Homepage field (source stanza). Removed: XS-
     Vcs-Svn fields.
+  * debian/rules:
+    - Use $(CURDIR) instead of `pwd`.
+    - Move dh_clean before make distclean.
+    - Create install and install-stamp targets.
+    - Remove $(MAKE) tests (there are no tests).
+    - Only call $(MAKE) distclean if we have a Makefile (and stop creating
+      one just for cleaning).
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:29:33 +0200
 

Modified: trunk/libfont-ttf-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libfont-ttf-perl/debian/rules?rev=9528&op=diff
==============================================================================
--- trunk/libfont-ttf-perl/debian/rules (original)
+++ trunk/libfont-ttf-perl/debian/rules Sat Nov 17 20:38:03 2007
@@ -9,7 +9,7 @@
      PERL = /usr/bin/perl
 endif
 
-TMP=`pwd`/debian/libfont-ttf-perl
+TMP=$(CURDIR)/debian/libfont-ttf-perl
 config = INSTALLDIRS=vendor
 
 build: build-stamp
@@ -22,21 +22,25 @@
 clean: 
 	dh_testdir
 	dh_testroot
-	$(PERL) Makefile.PL
-	$(MAKE) distclean
-	dh_clean build-stamp
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
 
-binary-arch: build
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	$(MAKE) install PREFIX=$(TMP)/usr
+	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
+	rm $(TMP)/usr/share/perl5/Font/TTF/Changes
+	touch install-stamp
+
+binary-arch:
 # We have nothing to do by default.
 
-binary-indep: build
+binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_clean
-	$(MAKE) install PREFIX=$(TMP)/usr
-	$(MAKE) test
-	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
-	rm $(TMP)/usr/share/perl5/Font/TTF/Changes
 	dh_perl
 	dh_installdocs README.TXT
 	dh_installman




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