620304dfb96ceb1548de00241d14014a48826459
[grml-debootstrap.git] / Makefile
1 all: doc
2
3 doc: doc_man doc_html
4
5 doc_html: html-stamp
6
7 html-stamp: grml-debootstrap.txt
8         sed -i 's/^include::releasetable-man.txt\[\]/include::releasetable.txt\[\]/' grml-debootstrap.txt
9         asciidoc -b xhtml11 -a icons grml-debootstrap.txt
10         touch html-stamp
11
12 doc_man: man-stamp
13
14 man-stamp: grml-debootstrap.txt
15         sed -i 's/^include::releasetable.txt\[\]/include::releasetable-man.txt\[\]/' grml-debootstrap.txt
16         asciidoc -d manpage -b docbook grml-debootstrap.txt
17         sed -i 's/<emphasis role="strong">/<emphasis role="bold">/' grml-debootstrap.xml
18         xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-debootstrap.xml
19         # ugly hack to avoid duplicate empty lines in manpage
20         # notice: docbook-xsl 1.71.0.dfsg.1-1 is broken! make sure you use 1.68.1.dfsg.1-0.2!
21         cp grml-debootstrap.8 grml-debootstrap.8.tmp
22         uniq grml-debootstrap.8.tmp > grml-debootstrap.8
23         rm grml-debootstrap.8.tmp
24         touch man-stamp
25
26 online: all
27         scp grml-debootstrap.html grml:/var/www/grml/grml-debootstrap/index.html
28         scp images/icons/* grml:/var/www/grml/grml-debootstrap/images/icons/
29
30 clean:
31         rm -rf grml-debootstrap.html grml-debootstrap.xml grml-debootstrap.8 html-stamp man-stamp