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
49 # Build architecture-dependent files here.
50 binary-arch: build install
51 # We have nothing to do by default.
53 # Build architecture-independent files here.
54 binary-indep: build install
57 dh_installdocs BUGS TODO README examples/README docs/README
58 dh_installexamples examples/*
62 dh_installchangelogs CHANGES
71 binary: binary-indep binary-arch
72 .PHONY: build clean binary-indep binary-arch binary