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
include /usr/share/quilt/quilt.make
12
# If set to a true value then MakeMaker's prompt function will
13
# always return the default without waiting for user input.
14
export PERL_MM_USE_DEFAULT=1
16
PACKAGE=$(shell dh_listpackages)
22
TMP =$(CURDIR)/debian/$(PACKAGE)
28
# Add commands to compile the package here
29
$(PERL) Makefile.PL INSTALLDIRS=vendor
30
$(MAKE) OPTIMIZE="-Wall -O2 -g"
38
# Add commands to clean up after the build process here
39
[ ! -f Makefile ] || $(MAKE) realclean
41
dh_clean build-stamp install-stamp
43
install: build install-stamp
49
# Add commands to install the package into debian/$PACKAGE_NAME here
51
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
52
dh_installdirs usr/bin
53
dh_install viewperl usr/bin
55
# As this is a architecture independent package, we are not
56
# supposed to install stuff to /usr/lib. MakeMaker creates
57
# the dirs, we delete them from the deb:
58
rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
63
# We have nothing to do by default.
65
binary-indep: build install
69
dh_installchangelogs ChangeLog
70
dh_installman debian/viewperl.1
82
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
84
binary: binary-indep binary-arch
85
.PHONY: build clean binary-indep binary-arch binary