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 include /usr/share/quilt/quilt.make
12 # If set to a true value then MakeMaker's prompt function will
13 # always return the default without waiting for user input.
14 export PERL_MM_USE_DEFAULT=1
20 TMP =$(CURDIR)/debian/tmp
23 build-stamp: $(QUILT_STAMPFN)
26 $(PERL) Makefile.PL INSTALLDIRS=vendor
36 dh_clean build-stamp install-stamp
38 [ ! -f Makefile ] || $(MAKE) realclean
40 install: install-stamp
41 install-stamp: build-stamp
46 $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
48 [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
49 rm $(TMP)/usr/share/perl5/Test/HACKING.pod
51 dh_install -plibtest-harness-perl debian/tmp/*
56 # We have nothing to do by default.
58 binary-indep: build install
62 dh_installexamples examples/*
63 dh_installchangelogs Changes
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary install