2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 include /usr/share/quilt/quilt.make
10 PACKAGE=$(shell dh_listpackages)
11 TMP=$(CURDIR)/debian/$(PACKAGE)
18 build-stamp: $(QUILT_STAMPFN)
20 $(PERL) Build.PL installdirs=vendor verbose=1
22 # xt/spelling.t lacks Test::Spelling so we only take the other xt/ tests
23 $(PERL) Build test --test_files 't/*.t' --test_files 'xt/[cp]*.t'
29 dh_clean build-stamp install-stamp
30 [ ! -f Build ] || $(PERL) Build distclean
32 install: install-stamp
33 install-stamp: build-stamp
37 $(PERL) Build install destdir=$(TMP) create_packlist=0
41 binary-indep: build install
45 dh_installexamples examples/*
46 dh_installchangelogs Changes
55 binary: binary-indep binary-arch
56 .PHONY: build clean binary-indep binary-arch binary install configure