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
13 build: build-arch build-indep
16 # nothing to do, as there aren't any architecture-dependent packages
18 build-indep: build-stamp
22 $(PERL) Makefile.PL INSTALLDIRS=vendor
23 $(MAKE) -f Makefile.perl
31 if [ -e Makefile.perl ]; then \
32 $(MAKE) -f Makefile.perl clean; \
34 #something to remove all trace and *.trace files?
35 rm -f debbugs.trace Makefile.perl.old
38 install: install-stamp
43 $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
44 $(MAKE) -f Makefile.perl install DESTDIR=$(DEST_DIR)
48 # nothing to do, as there aren't any architecture-dependent packages
50 binary-indep: build install
55 $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
56 $(MAKE) -f Makefile.perl install DESTDIR=$(DEST_DIR)
57 dh_install --sourcedir=debian/tmp --fail-missing
62 #chown bugs.bugs $(var_dir)/spool/incoming
65 dh_compress -X examples/text
72 binary: binary-indep binary-arch
73 .PHONY: build clean install binary-indep binary-arch binary