#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. #DH_VERBOSE = 1 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk BUILDHOME = $(CURDIR)/debian/build %: dh $@ # inject version number at beginning of dist.ini file # this is required because upstream uses Git::NextVersion plugin override_dh_dzil_build: perl -p -g -i -E 'say "version = $(DEB_VERSION_UPSTREAM)";' dist.ini # perl critic tests are better run upstream rm t/perlcriticrc t/perl-critic.t AUTHOR_TESTING=0 dh_dzil_build override_dh_clean: dzil clean perl -n -i -E 'print unless /^version =/;' dist.ini dh_clean rm -rf $(BUILDHOME) override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) mkdir -p $(BUILDHOME) HOME=$(BUILDHOME) AUTHOR_TESTING=0 dzil test endif