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 include /usr/share/quilt/quilt.make
17 PACKAGE = $(shell dh_listpackages)
18 TMP = $(CURDIR)/debian/$(PACKAGE)
21 build-stamp: $(QUILT_STAMPFN)
23 $(PERL) Makefile.PL INSTALLDIRS=vendor
31 dh_clean build-stamp install-stamp
32 [ ! -f Makefile ] || $(MAKE) realclean
34 install: install-stamp
35 install-stamp: build-stamp
39 $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
40 [ ! -d $(TMP)/usr/lib/perl5 ] || \
41 rmdir --ignore-fail-on-non-empty --parents --verbose \
46 # We have nothing to do here for an architecture-independent package
48 binary-indep: build install
52 dh_installchangelogs Changes
61 binary: binary-indep binary-arch
62 .PHONY: build clean binary-indep binary-arch binary install