* Add perlmagick to build-depends so syntax check of img plugin works.
[ikiwiki.git] / debian / rules
1 #!/usr/bin/make -f
2
3 build: build-stamp
4 build-stamp:
5         dh_testdir
6         perl Makefile.PL PREFIX=/usr
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 INSTALLDIRS=vendor \
26                 DESTDIR=$(shell pwd)/debian/ikiwiki
27         dh_install wikilist etc/ikiwiki
28         dh_installdocs html
29         dh_installexamples doc/examples
30         dh_link usr/share/common-licenses/GPL usr/share/doc/ikiwiki/html/GPL
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