2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
6 # Uncomment this to turn on verbose mode.
9 DEST_DIR := $(CURDIR)/debian/tmp
16 $(PERL) Makefile.PL INSTALLDIRS=vendor
17 $(MAKE) -f Makefile.perl
25 if [ -e Makefile.perl ]; then \
26 $(MAKE) -f Makefile.perl clean; \
28 #something to remove all trace and *.trace files?
29 rm -f debbugs.trace Makefile.perl.old
32 install: install-stamp
37 $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
38 $(MAKE) -f Makefile.perl install PREFIX=$(DEST_DIR)/usr
42 # nothing to do, as there aren't any architecture-dependent packages
44 binary-indep: build install
49 $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
50 $(MAKE) -f Makefile.perl install PREFIX=$(DEST_DIR)/usr
51 dh_install --sourcedir=debian/tmp --fail-missing
56 #chown bugs.bugs $(var_dir)/spool/incoming
59 dh_compress -X examples/text
66 binary: binary-indep binary-arch
67 .PHONY: build clean install binary-indep binary-arch binary