#!/usr/bin/make -f include /usr/share/quilt/quilt.make build : build-stamp build-stamp : Makefile.PL $(QUILT_STAMPFN) perl Makefile.PL INSTALLDIRS=vendor $(MAKE) test touch build-stamp binary : binary-arch binary-indep binary-arch : binary-indep : build-stamp dh_testroot $(MAKE) PREFIX=$(CURDIR)/debian/libmaypole-perl/usr install dh_perl dh_installchangelogs Changes dh_installdocs mv debian/libmaypole-perl/usr/share/perl5/Maypole/templates \ debian/libmaypole-perl/usr/share/doc/libmaypole-perl/templates mkdir debian/libmaypole-perl/usr/share/doc/libmaypole-perl/examples/templates mv debian/libmaypole-perl/usr/share/doc/libmaypole-perl/templates/beer \ debian/libmaypole-perl/usr/share/doc/libmaypole-perl/examples/templates/custom ln -s ../../templates/factory \ debian/libmaypole-perl/usr/share/doc/libmaypole-perl/examples/templates/factory ln -s ../../../templates/factory \ debian/libmaypole-perl/usr/share/doc/libmaypole-perl/examples/fancy_example/templates/factory dh_compress -X/examples/ -X/templates/ dh_fixperms dh_gencontrol dh_md5sums dh_builddeb clean : unpatch if [ -f Makefile ]; then $(MAKE) clean; fi dh_clean Makefile Makefile.old build-stamp .PHONY : build binary binary-arch binary-dep clean patch unpatch