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
# Add commands to compile the package here
27
$(PERL) Makefile.PL INSTALLDIRS=vendor
29
# leave 2nd test out, cause it needs network connection
5
dh build --before dh_auto_test
6
# leave 2nd test out, cause it needs network connection
30
7
$(MAKE) test TEST_FILES="t/01_use.t"
8
dh build --after dh_auto_test
38
dh_clean build-stamp install-stamp
40
# Add commands to clean up after the build process here
41
[ ! -f Makefile ] || $(MAKE) realclean
43
14
install: install-stamp
44
15
install-stamp: build-stamp
49
# Add commands to install the package into $(TMP) here
50
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
52
[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
57
# We have nothing to do here for an architecture-independent package
59
binary-indep: build install
73
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
75
binary: binary-indep binary-arch
76
.PHONY: build clean binary-indep binary-arch binary install
24
binary: binary-arch binary-indep
26
.PHONY: binary binary-arch binary-indep install clean build