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 tmp = $(CURDIR)/debian/libfilter-perl
13 config = INSTALLDIRS=vendor INSTALLMAN3DIR=/usr/share/man/man3
14 vendorarch = `perl -MConfig -e 'print $$Config{vendorarch}'`
16 configure: configure-stamp
19 # Add here commands to configure the package.
20 perl Makefile.PL $(config)
24 build: configure build-stamp
28 # Add here commands to compile the package.
29 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30 $(MAKE) OPTIMIZE="-O2 -g -Wall"
32 $(MAKE) OPTIMIZE="-g -Wall"
41 # Add here commands to clean up after the build process.
42 [ ! -f Makefile ] || $(MAKE) realclean
43 rm -f Try.pm # for 'make test'
45 dh_clean build-stamp configure-stamp
53 # Add here commands to install the package into debian/tmp.
54 $(MAKE) install PREFIX=$(tmp)/usr
56 # Build architecture-independent files here.
57 binary-indep: build install
58 # We have nothing to do by default.
60 # Build architecture-dependent files here.
61 binary-arch: build install
66 dh_installchangelogs Changes
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install configure