abd450727310c2edf46670afc4a0125e9cbee576
[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 usr/share/vim/syntax
36
37         # cp -a zsh_people       debian/zsh-lovers/usr/share/doc/zsh-lovers/
38         # install -m 644 zsh.vim debian/zsh-lovers/usr/share/vim/syntax/zsh.vim
39
40 binary-indep: build install
41         # We have nothing to do
42
43 binary-arch: build install
44         dh_testdir
45         dh_testroot
46         dh_installchangelogs 
47         dh_installdocs
48         dh_installman zsh-lovers.1
49         dh_link
50         dh_compress
51         mkdir -p debian/zsh-lovers/usr/share/lintian/overrides/
52         cp -av debian/overrides debian/zsh-lovers/usr/share/lintian/overrides/zsh-lovers
53         dh_fixperms
54         dh_installdeb
55         dh_shlibdeps
56         dh_gencontrol
57         dh_md5sums
58         dh_builddeb
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary install