bug closure
[ikiwiki] / debian / rules
1 #!/usr/bin/make -f
2
3 build: build-stamp
4 build-stamp:
5         dh_testdir
6         perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor
7         $(MAKE)
8         $(MAKE) test
9         touch build-stamp
10
11 clean:
12         dh_testdir
13         dh_testroot
14         rm -f build-stamp
15         perl Makefile.PL
16         -$(MAKE) realclean
17         dh_clean
18
19 binary-arch: build
20
21 binary-indep: build
22         dh_testdir
23         dh_testroot
24         dh_clean -k
25         $(MAKE) pure_install DESTDIR=$(shell pwd)/debian/ikiwiki
26         dh_install wikilist etc/ikiwiki
27         dh_installdocs html
28         dh_installexamples doc/examples/*
29         dh_link usr/share/common-licenses/GPL usr/share/doc/ikiwiki/html/GPL
30         dh_installchangelogs
31         dh_compress -X html
32         dh_fixperms
33         dh_perl
34         dh_installdeb
35         dh_gencontrol
36         dh_md5sums
37         dh_builddeb
38
39 # Not intended for use by anyone except the author.
40 announcedir:
41         @echo ${HOME}/src/ikiwiki/doc/news
42
43 binary: binary-indep binary-arch
44 .PHONY: build clean binary-indep binary-arch binary