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
15
PACKAGE = $(shell dh_listpackages)
16
TMP = $(CURDIR)/debian/$(PACKAGE)
18
# Allow disabling build optimisation by setting noopt in
21
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30
$(PERL) Makefile.PL INSTALLDIRS=vendor
31
$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
38
dh_clean build-stamp install-stamp
39
[ ! -f Makefile ] || $(MAKE) realclean
41
install: install-stamp
42
install-stamp: build-stamp
46
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
47
[ ! -d $(TMP)/usr/share/perl5 ] || \
48
rmdir --ignore-fail-on-non-empty --parents --verbose \
49
$(TMP)/usr/share/perl5
52
# Build architecture-independent files here.
53
binary-indep: build install
54
# We have nothing to do here for an architecture-dependent package
56
# Build architecture-dependent files here.
57
binary-arch: build install
72
binary: binary-indep binary-arch
73
.PHONY: build clean binary-indep binary-arch binary install