]> git.decadent.org.uk Git - maypole.git/blob - debian/rules
Fix build procedure; include full dependencies and run tests.
[maypole.git] / debian / rules
1 #!/usr/bin/make -f
2
3 build : build-stamp
4
5 build-stamp : Makefile.PL
6         perl Makefile.PL INSTALLDIRS=vendor
7         $(MAKE) test
8         touch build-stamp
9
10 binary : binary-arch binary-indep
11
12 binary-arch :
13
14 binary-indep : build-stamp
15         dh_testroot
16         $(MAKE) PREFIX=$(CURDIR)/debian/libmaypole-perl/usr install
17         dh_perl
18         dh_installchangelogs
19         dh_installdocs
20         dh_compress
21         dh_fixperms
22         dh_gencontrol
23         dh_builddeb
24
25 clean : 
26         if [ -f Makefile ]; then $(MAKE) clean; fi
27         dh_clean Makefile Makefile.old build-stamp
28
29 .PHONY : build binary binary-arch binary-dep clean