fix
[ikiwiki.git] / 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_install debian/wikilist etc/ikiwiki
27         dh_installdocs html
28         dh_link usr/share/common-licenses/GPL usr/share/doc/ikiwiki/html/GPL
29         dh_link usr/share/ikiwiki/basewiki \
30                 usr/share/doc/ikiwiki/examples/basewiki
31         dh_installman ikiwiki.man
32         dh_installchangelogs
33         dh_compress -X html
34         dh_fixperms
35         dh_perl
36         dh_installdeb
37         dh_gencontrol
38         dh_md5sums
39         dh_builddeb
40
41 binary: binary-indep binary-arch
42 .PHONY: build clean binary-indep binary-arch binary