#!/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 export SBOX_REDIRECT_IGNORE:=/usr/bin/perl unexport PERL5LIB export PATH:=/usr/bin/dh7:/usr/bin:$(PATH) tmp = $(CURDIR)/debian/libfilter-perl config = INSTALLDIRS=vendor INSTALLMAN3DIR=/usr/share/man/man3 vendorarch = `perl -MConfig -e 'print $$Config{vendorarch}'` configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. perl Makefile.PL $(config) touch configure-stamp build: configure build-stamp build-stamp: dh_testdir # Add here commands to compile the package. ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) $(MAKE) OPTIMIZE="-O2 -g -Wall" else $(MAKE) OPTIMIZE="-g -Wall" endif touch build-stamp clean: configure dh_testdir dh_testroot # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) realclean rm -f Try.pm # for 'make test' dh_clean build-stamp configure-stamp install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/tmp. $(MAKE) install PREFIX=$(tmp)/usr # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installchangelogs Changes dh_strip dh_compress dh_fixperms dh_installdeb dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure