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)
12 TMP =$(CURDIR)/debian/$(PACKAGE)
21 perl Makefile.PL verbose INSTALLDIRS=vendor
29 dh_clean build-stamp install-stamp
30 [ ! -f Makefile ] || $(MAKE) realclean
32 install: install-stamp
37 $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
38 [ ! -d $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(shell dh_listpackages)/usr/lib/perl5
42 binary-indep: build install
45 dh_installchangelogs ChangeLog
55 binary: binary-indep binary-arch
56 .PHONY: build clean binary-indep binary-arch binary install configure