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)
25
$(PERL) Makefile.PL INSTALLDIRS=vendor
26
$(MAKE) OPTIMIZE="-Wall -O2 -g"
33
[ ! -f Makefile ] || $(MAKE) realclean
34
dh_clean build-stamp install-stamp
36
install: build install-stamp
42
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
43
[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
11
install: install-stamp
12
install-stamp: build-stamp
48
# We have nothing to do by default.
50
binary-indep: build install
53
dh_installexamples examples/*.pl
55
dh_installchangelogs Changes
67
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
69
binary: binary-indep binary-arch
70
.PHONY: build clean binary-indep binary-arch binary
21
binary: binary-arch binary-indep
23
.PHONY: binary binary-arch binary-indep install clean build