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