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
# If set to a true value then MakeMaker's prompt function will
8
# always return the default without waiting for user input.
9
export PERL_MM_USE_DEFAULT=1
11
PACKAGE=$(shell dh_listpackages)
17
TMP =$(CURDIR)/debian/$(PACKAGE)
19
# Allow disabling build optimation by setting noopt in
22
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
31
# Add commands to compile the package here
32
$(PERL) Makefile.PL INSTALLDIRS=vendor
33
$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
40
dh_clean build-stamp install-stamp
42
install: build install-stamp
48
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
50
# As this is a architecture dependent package, we are not
51
# supposed to install stuff to /usr/share. MakeMaker creates
52
# the dirs, we delete them from the deb:
53
rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
56
# Build architecture-independent files here.
57
binary-indep: build install
58
# We have nothing to do by default.
60
# Build architecture-dependent files here.
61
binary-arch: build install
64
# dh_installdocs README Cache-FastMmap-CImpl/README
69
dh_installchangelogs Changes
83
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
85
binary: binary-indep binary-arch
86
.PHONY: build clean binary-indep binary-arch binary