]> git.decadent.org.uk Git - maypole.git/blob - debian/rules
8352dba04263041c9877aa3db37fa0e45d8c2ce5
[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/ex/templates
25         mv debian/libmaypole-perl/usr/share/doc/libmaypole-perl/templates/beer \
26            debian/libmaypole-perl/usr/share/doc/libmaypole-perl/ex/templates/custom
27         ln -s ../../templates/factory \
28            debian/libmaypole-perl/usr/share/doc/libmaypole-perl/ex/templates/factory
29         ln -s ../../../templates/factory \
30            debian/libmaypole-perl/usr/share/doc/libmaypole-perl/ex/fancy_example/templates/factory
31         dh_compress -X/ex/ -X/templates/
32         dh_fixperms
33         dh_gencontrol
34         dh_md5sums
35         dh_builddeb
36
37 clean : unpatch
38         if [ -f Makefile ]; then $(MAKE) clean; fi
39         dh_clean Makefile Makefile.old build-stamp
40
41 .PHONY : build binary binary-arch binary-dep clean patch unpatch