Update changelog for release
[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.8.txt
8         sed -i 's/^include::releasetable-man.txt\[\]/include::releasetable.txt\[\]/' grml-debootstrap.8.txt
9         asciidoc -b xhtml11 -a icons grml-debootstrap.8.txt
10         touch html-stamp
11
12 doc_man: man-stamp
13
14 man-stamp: grml-debootstrap.8.txt
15         sed -i 's/^include::releasetable.txt\[\]/include::releasetable-man.txt\[\]/' grml-debootstrap.8.txt
16         asciidoc -d manpage -b docbook grml-debootstrap.8.txt
17         sed -i 's/<emphasis role="strong">/<emphasis role="bold">/' grml-debootstrap.8.xml
18         xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-debootstrap.8.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         # ugly hack to avoid '.sp' at the end of a sentence or paragraph:
24         sed -i 's/\.sp//' grml-debootstrap.8
25         rm grml-debootstrap.8.tmp
26         touch man-stamp
27
28 online: all
29         scp grml-debootstrap.8.html grml:/var/www/grml/grml-debootstrap/index.html
30         scp images/icons/*          grml:/var/www/grml/grml-debootstrap/images/icons/
31         scp images/screenshot.png   grml:/var/www/grml/grml-debootstrap/images/
32
33 clean:
34         rm -rf grml-debootstrap.8.html grml-debootstrap.8.xml grml-debootstrap.8 html-stamp man-stamp