Some small cleanups to make lintian happy / part 3
[zsh-lovers.git] / debian / rules
1 #!/usr/bin/make -f
2
3 build: build-stamp
4
5 build-stamp: 
6         dh_testdir
7
8         # html:
9         asciidoc zsh-lovers.1.txt
10         mv zsh-lovers.1.html zsh-lovers.html
11
12         # manpage:
13         a2x -f manpage zsh-lovers.1.txt
14
15         # pdf:
16         #  notice: current version of fop (1:0.93.dfsg.1-2) is horrible broken
17         #  download http://snapshot.debian.net/archive/2005/10/15/debian/pool/contrib/f/fop/fop_0.20.5-8_all.deb
18         #  to work around this bug
19         a2x -f pdf zsh-lovers.1.txt
20         mv zsh-lovers.1.pdf zsh-lovers.pdf
21
22         touch build-stamp
23
24 clean:
25         dh_testdir
26         dh_testroot
27         rm -f zsh-lovers.1 zsh-lovers.1.fo zsh-lovers.1.xml zsh-lovers.html zsh-lovers.pdf
28         rm -f build-stamp
29         dh_clean 
30
31 install: build
32         dh_testdir
33         dh_testroot
34         dh_clean -k 
35         dh_installdirs usr/share/doc/zsh-lovers/zsh_people usr/share/man/man1
36
37 binary-arch: build install
38         # We have nothing to do
39
40 binary-indep: build install
41         dh_testdir
42         dh_testroot
43         dh_installchangelogs 
44         dh_installdocs
45         dh_installman zsh-lovers.1
46         dh_link
47         dh_compress
48         mkdir -p debian/zsh-lovers/usr/share/lintian/overrides/
49         cp -av debian/overrides debian/zsh-lovers/usr/share/lintian/overrides/zsh-lovers
50         dh_fixperms
51         dh_installdeb
52         dh_shlibdeps
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 binary: binary-indep binary-arch
58 .PHONY: build clean binary-indep binary-arch binary install