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 tmp = $(CURDIR)/debian/libfilter-perl
9 config = INSTALLDIRS=vendor INSTALLMAN3DIR=/usr/share/man/man3
10 vendorarch = `perl -MConfig -e 'print $$Config{vendorarch}'`
12 configure: configure-stamp
15 # Add here commands to configure the package.
16 perl Makefile.PL $(config)
20 build: configure build-stamp
24 # Add here commands to compile the package.
25 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26 $(MAKE) OPTIMIZE="-O2 -g -Wall"
28 $(MAKE) OPTIMIZE="-g -Wall"
37 # Add here commands to clean up after the build process.
38 [ ! -f Makefile ] || $(MAKE) realclean
39 rm -f Try.pm # for 'make test'
41 dh_clean build-stamp configure-stamp
49 # Add here commands to install the package into debian/tmp.
50 $(MAKE) install PREFIX=$(tmp)/usr
52 # Build architecture-independent files here.
53 binary-indep: build install
54 # We have nothing to do by default.
56 # Build architecture-dependent files here.
57 binary-arch: build install
62 dh_installchangelogs Changes
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary install configure