2 # This debian/rules file is provided as a template for normal perl
3 # packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4 # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5 # be used freely wherever it is useful.
7 # Uncomment this to turn on verbose mode.
10 # If set to a true value then MakeMaker's prompt function will
11 # always return the default without waiting for user input.
12 export PERL_MM_USE_DEFAULT=1
14 PACKAGE=$(shell dh_listpackages)
20 TMP =$(CURDIR)/debian/$(PACKAGE)
22 # Allow disabling build optimation by setting noopt in
25 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
35 $(PERL) Makefile.PL INSTALLDIRS=vendor
47 dh_clean build-stamp install-stamp
49 install: install-stamp
50 install-stamp: build-stamp
55 $(MAKE) install PREFIX=$(TMP)/usr
57 # As this is a architecture independent package, we are not supposed to install
58 # stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb:
59 rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
64 # We have nothing to do by default.
66 binary-indep: build install
73 dh_installchangelogs CHANGES
85 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
87 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary