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.
11 PACKAGE=$(shell dh_listpackages)
17 TMP =`pwd`/debian/$(PACKAGE)
23 $(PERL) Makefile.PL INSTALLDIRS=vendor
24 $(MAKE) OPTIMIZE="-O2 -g -Wall"
33 if [ -e Makefile ]; then \
46 $(MAKE) install PREFIX=$(TMP)/usr
50 # Build architecture-dependent files here.
51 binary-arch: build install
52 # We have nothing to do by default.
54 # Build architecture-independent files here.
55 binary-indep: build install
58 dh_installdocs BUGS TODO README examples/README docs/README
59 dh_installexamples examples/*
63 dh_installchangelogs CHANGES
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary