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