r15579 - in /trunk/libclone-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Mon Feb 25 00:01:48 UTC 2008


Author: gregoa-guest
Date: Mon Feb 25 00:01:47 2008
New Revision: 15579

URL: http://svn.debian.org/wsvn/?sc=1&rev=15579
Log:
debian/rules:
  - don't ignore errors of make distclean
  - move dh_clean before make distclean and use it for removing stamp
    files
  - create install-stamp target
  - remove commented out or unused dh_* calls
  - move actual build and tests to build-stamp target

Modified:
    trunk/libclone-perl/debian/changelog
    trunk/libclone-perl/debian/rules

Modified: trunk/libclone-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libclone-perl/debian/changelog?rev=15579&op=diff
==============================================================================
--- trunk/libclone-perl/debian/changelog (original)
+++ trunk/libclone-perl/debian/changelog Mon Feb 25 00:01:47 2008
@@ -12,8 +12,15 @@
   * New upstream releases, builds also with Perl 5.10 (closes: #463099).
   * Set debhelper compatibility level to 6.
   * Set Standards-Version to 3.7.3 (no changes).
+  * debian/rules:
+    - don't ignore errors of make distclean
+    - move dh_clean before make distclean and use it for removing stamp
+      files
+    - create install-stamp target
+    - remove commented out or unused dh_* calls
+    - move actual build and tests to build-stamp target
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 25 Feb 2008 00:53:25 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Mon, 25 Feb 2008 00:54:51 +0100
 
 libclone-perl (0.22-1) unstable; urgency=low
 

Modified: trunk/libclone-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libclone-perl/debian/rules?rev=15579&op=diff
==============================================================================
--- trunk/libclone-perl/debian/rules (original)
+++ trunk/libclone-perl/debian/rules Mon Feb 25 00:01:47 2008
@@ -28,27 +28,30 @@
 
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+	$(MAKE)
+	$(MAKE) test
 
 	touch $@
 
 clean:
 	dh_testdir
-	rm -f build-stamp
+	dh_testroot
 
-	-$(MAKE) realclean
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-	dh_clean
-
-install:
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
 
-	$(MAKE) test
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	
+
 	[ ! -d $(TMP)/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5
-	
+
+	touch $@
+
 # Build architecture-independent files here.
 binary-indep: build install
 # We have nothing to do by default.
@@ -57,21 +60,15 @@
 binary-arch: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs 
-	dh_installexamples 
-#	dh_installmenu
-#	dh_installcron
-#	dh_installman
+	dh_installdocs
 	dh_installchangelogs Changes
 	dh_link
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	dh_strip
-endif
 	dh_compress
 	dh_fixperms
 	dh_makeshlibs
 	dh_installdeb
-	dh_perl 
+	dh_perl
 	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums




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