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 PACKAGE=$(shell dh_listpackages)
17 $(PERL) Build.PL installdirs=vendor
25 dh_clean build-stamp install-stamp
26 [ ! -f Build ] || $(PERL) Build distclean
28 install: install-stamp
29 install-stamp: build-stamp
34 $(PERL) Build install destdir=$(CURDIR)/debian/$(PACKAGE) create_packlist=0
35 rm $(CURDIR)/debian/$(PACKAGE)/usr/bin/pod_cover
36 rmdir --parents --ignore-fail-on-non-empty $(CURDIR)/debian/$(PACKAGE)/usr/bin
37 find $(CURDIR)/examples -type f -exec chmod +x {} \;
38 find $(CURDIR)/bin -type f -exec chmod +x {} \;
43 binary-indep: build install
47 dh_installchangelogs Changes
48 dh_installexamples examples/* bin/*
57 binary: binary-indep binary-arch
58 .PHONY: build clean binary-indep binary-arch binary install configure