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 # It was later modified by Jason Kohles <email@jasonkohles.com>
8 # http://www.jasonkohles.com/ to support Module::Build installed modules
10 # Uncomment this to turn on verbose mode.
13 # If set to a true value then MakeMaker's prompt function will
14 # always return the default without waiting for user input.
15 export PERL_MM_USE_DEFAULT=1
17 PACKAGE=$(shell dh_listpackages)
23 TMP =$(CURDIR)/debian/$(PACKAGE)
29 # Add commands to compile the package here
30 $(PERL) Build.PL installdirs=vendor
31 OPTIMIZE="-Wall -O2 -g" $(PERL) Build
39 # Add commands to clean up after the build process here
40 [ ! -f Build ] || $(PERL) Build distclean
42 dh_clean build-stamp install-stamp
44 install: build install-stamp
50 # Add commands to install the package into debian/$PACKAGE_NAME here
52 $(PERL) Build install destdir=$(TMP)
57 # We have nothing to do by default.
59 binary-indep: build install
78 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary