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 # This is the debhelper compatibility version to use.
11 PACKAGE=$(shell dh_listpackages)
20 # Add here commands to compile the package.
21 $(PERL) Build.PL installdirs=vendor create_packlist=0
29 dh_clean build-stamp install-stamp
30 [ ! -f Build ] || ./Build distclean
32 install: install-stamp
33 install-stamp: build-stamp
37 ./Build install destdir=$(CURDIR)/debian/$(PACKAGE)
38 #[ ! -d $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(PACKAGE)/usr/lib/perl5
42 binary-indep: build install
46 dh_installchangelogs Changes
55 binary: binary-indep binary-arch
56 .PHONY: build clean binary-indep binary-arch binary install configure