3
# Sample debian/rules that uses debhelper.
4
# GNU copyright 1997 to 1999 by Joey Hess.
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.
6
7
# Uncomment this to turn on verbose mode.
11
package := $(firstword $(shell dh_listpackages))
12
prefix := $(CURDIR)/debian/$(package)/usr
14
version := $(shell dpkg-parsechangelog | \
15
sed -ne 's/^Version: *\([0-9]\+:\)*//p')
18
cvs tag -c -F $(subst .,_,debian_version_$(version))
19
ifeq ($(findstring -,$(version)),)
20
cvs tag -c -F $(subst .,_,upstream_version_$(version))
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)
30
$(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
26
$(PERL) Makefile.PL INSTALLDIRS=vendor
38
rm -f build-stamp configure-stamp
40
# Add here commands to clean up after the build process.
36
dh_clean build-stamp install-stamp
37
[ ! -f Makefile ] || $(MAKE) realclean
39
install: install-stamp
40
install-stamp: build-stamp
51
# Add here commands to install the package into debian/libperl6-slurp-perl.
53
$(MAKE) pure_install PREFIX=$(prefix)
54
# As this is a architecture independent package, we are not
55
# supposed to install stuff to /usr/lib. MakeMaker creates
56
# the dirs, we delete them from the deb:
57
rmdir --ignore-fail-on-non-empty --parents $(prefix)/lib/perl5
60
# Build architecture-independent files here.
45
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
46
[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
51
# We have nothing to do here for an architecture-independent package
61
53
binary-indep: build install
64
57
dh_installchangelogs Changes
92
# Build architecture-dependent files here.
93
binary-arch: build install
67
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
95
69
binary: binary-indep binary-arch
96
.PHONY: build clean binary-indep binary-arch binary install configure
70
.PHONY: build clean binary-indep binary-arch binary install