blogspam: New plugin, adding spam filtering for page editing / comment posting using...
[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) -C po
8         $(MAKE)
9         $(MAKE) test
10         touch build-stamp
11
12 clean:
13         dh_testdir
14         dh_testroot
15         rm -f build-stamp
16         perl Makefile.PL
17         if [ -e Makefile ]; then $(MAKE) realclean; fi
18         dh_clean
19
20 binary-arch: build
21
22 binary-indep: build
23         dh_testdir
24         dh_testroot
25         dh_clean -k
26         $(MAKE) pure_install DESTDIR=$(shell pwd)/debian/ikiwiki
27         dh_installdocs html
28         dh_link usr/share/ikiwiki/examples usr/share/doc/ikiwiki/examples
29         dh_link usr/share/common-licenses/GPL-2 usr/share/doc/ikiwiki/html/GPL
30         dh_installexamples
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 # Not intended for use by anyone except the author.
41 announcedir:
42         @echo ${HOME}/src/ikiwiki/doc/news
43
44 binary: binary-indep binary-arch
45 .PHONY: build clean binary-indep binary-arch binary