templates: use net.ifnames=0 by default
[grml-live.git] / docs / Makefile
1 all: doc
2
3 doc: doc_man doc_html
4
5 doc_html: html-stamp
6
7 icons:
8         mkdir -p images/icons
9         cp /usr/share/asciidoc/icons/caution.png        images/icons/
10         cp /usr/share/asciidoc/icons/important.png      images/icons/
11         cp /usr/share/asciidoc/icons/note.png           images/icons/
12         cp /usr/share/asciidoc/icons/tip.png            images/icons/
13
14 html-stamp: grml-live.txt grml-live-remaster.txt grml-live-db.txt
15         asciidoc -b xhtml11 -a icons -a toc -a numbered grml-live.txt
16         asciidoc -b xhtml11 -a icons grml-live-remaster.txt
17         asciidoc -b xhtml11 -a icons grml-live-db.txt
18         touch html-stamp
19
20 doc_man: man-stamp
21
22 man-stamp: grml-live.txt grml-live-remaster.txt
23         asciidoc -d manpage -b docbook grml-live.txt
24         xsltproc --novalid /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live.xml
25         asciidoc -d manpage -b docbook grml-live-remaster.txt
26         xsltproc --novalid /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live-remaster.xml
27         asciidoc -d manpage -b docbook grml-live-db.txt
28         xsltproc --novalid /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live-db.xml
29         touch man-stamp
30
31 doc_epub: epub-stamp
32
33 epub-stamp:
34         a2x --icons -a toc -a toclevels=3 -a docinfo -f epub grml-live.txt
35         touch epub-stamp
36
37 doc_pdf: pdf-stamp
38
39 pdf-stamp:
40         a2x --icons -a toc -a toclevels=3 -a docinfo -f pdf grml-live.txt
41         touch pdf-stamp
42
43 online: icons doc_html doc_epub doc_pdf
44         # this is assume that a checkout of grml.org.git is available
45         # next to grml-live.git as "grml.org"
46         test -d ../../grml.org/grml-live || exit 1
47         cp grml-live.html       ../../grml.org/grml-live/index.html
48         cp grml-live.pdf        ../../grml.org/grml-live/
49         cp grml-live.epub       ../../grml.org/grml-live/
50
51 clean:
52         rm -rf images/icons
53         rm -f grml-live-remaster.html grml-live-remaster.xml grml-live-remaster.8
54         rm -f grml-live.html grml-live.xml grml-live.8 grml-live.epub grml-live.pdf
55         rm -f grml-live-db.html grml-live-db.xml grml-live-db.8
56         rm -f html-stamp man-stamp epub-stamp pdf-stamp