3 # Made with the aid of dh_make, by Craig Small
4 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5 # Some lines taken from debmake, by Christoph Lameter.
7 # Uncomment this to turn on verbose mode.
10 PACKAGE=$(shell dh_listpackages)
16 TMP =`pwd`/debian/$(PACKAGE)
22 $(PERL) Makefile.PL INSTALLDIRS=vendor
23 $(MAKE) OPTIMIZE="-O2 -g -Wall"
32 if [ -e Makefile ]; then \
45 $(MAKE) install PREFIX=$(TMP)/usr
46 [ ! -d $(TMP)/usr/lib/perl5 ] || \
47 rmdir -p --ignore-fail-on-non-empty $(TMP)/usr/lib/perl5
51 # Build architecture-dependent files here.
52 binary-arch: build install
53 # We have nothing to do by default.
55 # Build architecture-independent files here.
56 binary-indep: build install
59 dh_installdocs BUGS TODO README examples/README docs/README
60 dh_installexamples examples/*
64 dh_installchangelogs CHANGES
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary