2
## ----------------------------------------------------------------------
3
## debian/rules : package script for libtext-autoformat-perl
4
## ----------------------------------------------------------------------
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
7
# Uncomment this to turn on verbose mode.
10
## ----------------------------------------------------------------------
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
11
14
PACKAGE=$(shell dh_listpackages)
12
20
TMP =$(CURDIR)/debian/$(PACKAGE)
14
## ----------------------------------------------------------------------
26
$(PERL) Makefile.PL INSTALLDIRS=vendor
20
[ ! -f Makefile ] || $(MAKE) realclean
22
rm -f build-stamp install-stamp
27
perl Makefile.PL INSTALLDIRS=vendor
28
$(MAKE) OPTIMIZE="-O2 -g -Wall"
32
install: install-stamp
38
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
39
#As this is a architecture independent package, we are not supposed to install
40
#stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb:
41
rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
44
binary-indep: build install
49
dh_installchangelogs Changes
52
chmod 644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
36
dh_clean build-stamp install-stamp
37
[ ! -f Makefile ] || $(MAKE) realclean
39
install: install-stamp
40
install-stamp: build-stamp
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
61
binary: binary-indep binary-arch
63
.PHONY: clean build install binary-indep binary-arch binary
65
## ----------------------------------------------------------------------
51
# We have nothing to do here for an architecture-independent package
53
binary-indep: build install
57
dh_installexamples config.emacs config.vim
58
# no exec bit on samples
59
chmod 644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
62
dh_installchangelogs Changes
72
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
74
binary: binary-indep binary-arch
75
.PHONY: build clean binary-indep binary-arch binary