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)
26 # As this is a architecture independent package, we are not
27 # supposed to install stuff to /usr/lib. MakeMaker creates
28 # the dirs, we prevent this by setting the INSTALLVENDORARCH
29 # and VENDORARCHEXP environment variables.
31 # Add commands to compile the package here
32 $(PERL) Makefile.PL INSTALLDIRS=vendor \
33 INSTALLVENDORARCH=/usr/share/perl5/ \
34 VENDORARCHEXP=/usr/share/perl5/
44 dh_clean build-stamp install-stamp
46 # Add commands to clean up after the build process here
47 [ ! -f Makefile ] || $(MAKE) realclean
49 install: install-stamp
50 install-stamp: build-stamp
55 # Add commands to install the package into debian/$PACKAGE_NAME here
56 $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
61 # We have nothing to do here for an architecture-independent package
63 binary-indep: build install
68 dh_installchangelogs Changes
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