fix announcedir
[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_installchangelogs
30         dh_compress -X html
31         dh_fixperms
32         dh_perl
33         dh_installdeb
34         dh_gencontrol
35         dh_md5sums
36         dh_builddeb
37
38 # Not intended for use by anyone except the author.
39 announcedir:
40         @echo ${HOME}/src/ikiwiki/doc/news
41
42 binary: binary-indep binary-arch
43 .PHONY: build clean binary-indep binary-arch binary