#!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatibility version to use. # export DH_COMPAT=4 PACKAGE=$(shell dh_listpackages) TMP =$(CURDIR)/debian/$(PACKAGE) ifndef PERL PERL = /usr/bin/perl endif build: build-stamp build-stamp: dh_testdir perl Makefile.PL verbose INSTALLDIRS=vendor $(MAKE) $(MAKE) test touch $@ clean: dh_testdir dh_testroot dh_clean build-stamp install-stamp [ ! -f Makefile ] || $(MAKE) realclean install: install-stamp install-stamp: dh_testdir dh_testroot dh_clean -k $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr [ ! -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 touch $@ binary-arch:; binary-indep: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_compress dh_fixperms dh_installdeb dh_perl dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure