]> git.decadent.org.uk Git - maypole.git/blob - debian/rules
Add Vcs-* fields pointing to my public repository
[maypole.git] / debian / rules
1 #!/usr/bin/make -f
2
3 include /usr/share/quilt/quilt.make
4
5 build : build-stamp
6
7 build-stamp : Makefile.PL $(QUILT_STAMPFN)
8         perl Makefile.PL INSTALLDIRS=vendor
9         $(MAKE) test
10         touch build-stamp
11
12 binary : binary-arch binary-indep
13
14 binary-arch :
15
16 binary-indep : build-stamp
17         dh_testroot
18         $(MAKE) PREFIX=$(CURDIR)/debian/libmaypole-perl/usr install
19         dh_perl
20         dh_installchangelogs Changes
21         dh_installdocs
22         mv debian/libmaypole-perl/usr/share/perl5/Maypole/templates \
23             debian/libmaypole-perl/usr/share/doc/libmaypole-perl/templates
24         mkdir debian/libmaypole-perl/usr/share/doc/libmaypole-perl/examples/templates
25         mv debian/libmaypole-perl/usr/share/doc/libmaypole-perl/templates/beer \
26            debian/libmaypole-perl/usr/share/doc/libmaypole-perl/examples/templates/custom
27         ln -s ../../templates/factory \
28            debian/libmaypole-perl/usr/share/doc/libmaypole-perl/examples/templates/factory
29         dh_compress -X/examples/ -X/templates/
30         dh_fixperms
31         dh_gencontrol
32         dh_md5sums
33         dh_builddeb
34
35 clean : unpatch
36         if [ -f Makefile ]; then $(MAKE) clean; fi
37         dh_clean Makefile Makefile.old build-stamp
38
39 .PHONY : build binary binary-arch binary-dep clean patch unpatch