X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=debian%2Frules;h=4f80aaa59ebdaa8b9286f8dc6cbd754510eac42a;hp=e763e3fb77d5af5b9d300792bc897ea935c688f3;hb=dd425b2cb6384f804cc1eea9e45660ed6baeb2f1;hpb=83769a6653a8736141d035a8a963c6cc99970a17 diff --git a/debian/rules b/debian/rules index e763e3f..4f80aaa 100755 --- a/debian/rules +++ b/debian/rules @@ -1,8 +1,10 @@ #!/usr/bin/make -f +include /usr/share/quilt/quilt.make + build : build-stamp -build-stamp : Makefile.PL +build-stamp : Makefile.PL $(QUILT_STAMPFN) perl Makefile.PL INSTALLDIRS=vendor $(MAKE) test touch build-stamp @@ -17,13 +19,23 @@ binary-indep : build-stamp dh_perl dh_installchangelogs Changes dh_installdocs - dh_compress + 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 : +clean : unpatch if [ -f Makefile ]; then $(MAKE) clean; fi dh_clean Makefile Makefile.old build-stamp -.PHONY : build binary binary-arch binary-dep clean +.PHONY : build binary binary-arch binary-dep clean patch unpatch