foo
[ikiwiki] / debian / rules
1 #!/usr/bin/make -f
2
3 build: build-stamp
4 build-stamp:
5         dh_testdir
6         perl Makefile.PL
7         $(MAKE)
8         touch build-stamp
9
10 clean:
11         dh_testdir
12         dh_testroot
13         rm -f build-stamp
14         perl Makefile.PL
15         -$(MAKE) realclean
16         dh_clean
17
18 binary-arch: build
19
20 binary-indep: build
21         dh_testdir
22         dh_testroot
23         dh_clean -k
24         $(MAKE) pure_install INSTALLDIRS=vendor \
25                 PREFIX=$(shell pwd)/debian/ikiwiki/$(shell perl -MConfig -e 'print $$Config{prefix}')
26         dh_installdocs html
27         dh_link usr/share/common-licenses/GPL usr/share/doc/ikiwiki/html/GPL
28         dh_link usr/share/ikiwiki/basewiki \
29                 usr/share/doc/ikiwiki/examples/basewiki
30         dh_installman ikiwiki.man
31         dh_installchangelogs
32         dh_compress -X html
33         dh_fixperms
34         dh_perl
35         dh_installdeb
36         dh_gencontrol
37         dh_md5sums
38         dh_builddeb
39
40 binary: binary-indep binary-arch
41 .PHONY: build clean binary-indep binary-arch binary