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 export SBOX_REDIRECT_IGNORE:=/usr/bin/perl
10 export PATH:=/usr/bin/dh7:/usr/bin:$(PATH)
12 # This is the debhelper compatibility version to use.
15 PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
20 # Add here commands to compile the package.
21 perl Makefile.PL verbose INSTALLDIRS=vendor
36 $(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
37 -find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
40 binary-indep: build install
45 dh_installchangelogs Changes
56 binary: binary-indep binary-arch
57 .PHONY: build clean binary-indep binary-arch binary install configure