]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - debian/rules
web commit by http://madduck.myopenid.com/: further simplification by using $GIT_DIR
[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)
8         $(MAKE) test
9         touch build-stamp
11 clean:
12         dh_testdir
13         dh_testroot
14         rm -f build-stamp
15         perl Makefile.PL
16         if [ -e Makefile ]; then $(MAKE) realclean; fi
17         dh_clean
19 binary-arch: build
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-2 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
39 # Not intended for use by anyone except the author.
40 announcedir:
41         @echo ${HOME}/src/ikiwiki/doc/news
43 binary: binary-indep binary-arch
44 .PHONY: build clean binary-indep binary-arch binary