]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - debian/rules
po/todo: drop a note about my meta-po branch
[git.ikiwiki.info.git] / debian / rules
1 #!/usr/bin/make -f
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
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
20 binary-arch: build
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
40 # Not intended for use by anyone except the author.
41 announcedir:
42         @echo ${HOME}/src/ikiwiki/doc/news
44 binary: binary-indep binary-arch
45 .PHONY: build clean binary-indep binary-arch binary