[libimage-info-perl] 02/04: debian/rules: Simplify rules file to a tiny rules makefile

Salvatore Bonaccorso carnil at debian.org
Thu Nov 3 19:33:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

carnil pushed a commit to branch master
in repository libimage-info-perl.

commit 23fb1bbbe99851a66b9c6759f9e539fbf7e12e7a
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Thu Nov 3 20:26:01 2016 +0100

    debian/rules: Simplify rules file to a tiny rules makefile
---
 debian/rules | 60 ++----------------------------------------------------------
 1 file changed, 2 insertions(+), 58 deletions(-)

diff --git a/debian/rules b/debian/rules
index 947a20c..2d33f6a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,60 +1,4 @@
 #!/usr/bin/make -f
 
-PERL ?= /usr/bin/perl
-
-DEST_DIR := $(shell pwd)/debian/libimage-info-perl
-
-binary: binary-indep binary-arch
-
-binary-arch: build install
-
-
-binary-indep: binary-indep-stamp
-binary-indep-stamp: install
-	dh_testdir
-	dh_testroot
-	dh_installdocs README
-	dh_installchangelogs CHANGES
-	dh_fixperms
-	dh_installdeb
-	dh_perl
-	dh_compress
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-	touch $@
-
-build: build-stamp
-build-stamp:
-	dh_testdir
-	$(PERL) -I. Makefile.PL INSTALLDIRS=vendor
-	$(MAKE)
-	$(MAKE) test
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f *-stamp
-	if [ -e Makefile ]; then \
-		$(MAKE) distclean;\
-	fi
-	dh_clean
-
-
-install: install-stamp
-install-stamp: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-	$(MAKE) install DESTDIR=$(DEST_DIR)
-#	Install exifdump and imgdump into the examples directory
-	install -m755 -d $(DEST_DIR)/usr/share/doc/libimage-info-perl/examples
-	install -m755 exifdump imgdump $(DEST_DIR)/usr/share/doc/libimage-info-perl/examples
-	[ ! -d $(DEST_DIR)/usr/lib/perl5 ] || \
-		rmdir --ignore-fail-on-non-empty --parents $(DEST_DIR)/usr/lib/perl5
-	touch install-stamp
-
-.PHONY: binary binary-arch binary-indep clean install
+%:
+	dh $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libimage-info-perl.git



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