SW: remove darcs from GRML_FULL (too large).
[grml-live.git] / docs / Makefile
1 all: doc
2
3 doc: doc_man doc_html
4
5 doc_html: html-stamp
6
7 html-stamp: grml-live.txt grml-live-remaster.txt grml-live-db.txt
8         asciidoc -b xhtml11 -a icons -a toc -a numbered grml-live.txt
9         asciidoc -b xhtml11 -a icons grml-live-remaster.txt
10         asciidoc -b xhtml11 -a icons grml-live-db.txt
11         touch html-stamp
12
13 doc_man: man-stamp
14
15 man-stamp: grml-live.txt grml-live-remaster.txt
16         asciidoc -d manpage -b docbook grml-live.txt
17         xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live.xml
18         asciidoc -d manpage -b docbook grml-live-remaster.txt
19         xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live-remaster.xml
20         asciidoc -d manpage -b docbook grml-live-db.txt
21         xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live-db.xml
22         touch man-stamp
23
24 doc_epub: epub-stamp
25
26 epub-stamp:
27         a2x --icons -a toc -a toclevels=3 -a docinfo -f epub grml-live.txt
28         touch epub-stamp
29
30 doc_pdf: pdf-stamp
31
32 pdf-stamp:
33         a2x --icons -a toc -a toclevels=3 -a docinfo -f pdf grml-live.txt
34         touch pdf-stamp
35
36 online: doc_html doc_epub doc_pdf
37         scp grml-live.html grml:/var/www/grml/grml-live/index.html
38         scp grml-live.pdf  grml:/var/www/grml/grml-live/
39         scp grml-live.epub grml:/var/www/grml/grml-live/
40
41 clean:
42         rm -f grml-live-remaster.html grml-live-remaster.xml grml-live-remaster.8
43         rm -f grml-live.html grml-live.xml grml-live.8 grml-live.epub grml-live.pdf
44         rm -f grml-live-db.html grml-live-db.xml grml-live-db.8
45         rm -f html-stamp man-stamp epub-stamp pdf-stamp