r24118 - /trunk/libdata-report-perl/debian/rules
angelabad-guest at users.alioth.debian.org
angelabad-guest at users.alioth.debian.org
Mon Aug 11 11:54:48 UTC 2008
Author: angelabad-guest
Date: Mon Aug 11 11:54:46 2008
New Revision: 24118
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=24118
Log:
Update debian/rules
Modified:
trunk/libdata-report-perl/debian/rules
Modified: trunk/libdata-report-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-report-perl/debian/rules?rev=24118&op=diff
==============================================================================
--- trunk/libdata-report-perl/debian/rules (original)
+++ trunk/libdata-report-perl/debian/rules Mon Aug 11 11:54:46 2008
@@ -14,44 +14,34 @@
# always return the default without waiting for user input.
export PERL_MM_USE_DEFAULT=1
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP =$(CURDIR)/debian/$(PACKAGE)
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
-
# Add commands to compile the package here
$(PERL) Build.PL installdirs=vendor
$(PERL) Build
$(PERL) Build test
-
- touch build-stamp
+ touch $@
clean:
dh_testdir
dh_testroot
+ dh_clean build-stamp install-stamp
+ # Add commands to clean up after the build process here
+ [ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
- dh_clean build-stamp install-stamp
-
- # Add commands to clean up after the build process here
- [ ! -f Build ] || $(PERL) Build distclean
-
-install: build install-stamp
-install-stamp:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
-
- # Add commands to install the package into debian/$PACKAGE_NAME here
+ # Add commands to install the package into $(TMP) here
$(PERL) Build install destdir=$(TMP) create_packlist=0
-
- touch install-stamp
+ touch $@
binary-arch:
# We have nothing to do here for an architecture-independent package
@@ -60,7 +50,6 @@
dh_testdir
dh_testroot
dh_installdocs README
- dh_installexamples
dh_installchangelogs Changes
dh_perl
dh_compress
@@ -70,8 +59,5 @@
dh_md5sums
dh_builddeb
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list