X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=docs%2FMakefile;h=47f514ae1ccea3cd86da2fa6d104380ad616b2cd;hp=4fb6d5e768e951ad6aa38fb0e50bec95e9b2e587;hb=01fa9e097a465a73a62bfef701db03a3624dbd4e;hpb=f3a39c0e8073ead55cdcec7fba806249c8140b75 diff --git a/docs/Makefile b/docs/Makefile index 4fb6d5e..47f514a 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,29 +1,56 @@ all: doc -# doc: doc_man doc_html -doc: doc_html +doc: doc_man doc_html doc_html: html-stamp -html-stamp: grml-live.txt - asciidoc -b xhtml11 grml-live.txt +icons: + mkdir -p images/icons + cp /usr/share/asciidoc/icons/caution.png images/icons/ + cp /usr/share/asciidoc/icons/important.png images/icons/ + cp /usr/share/asciidoc/icons/note.png images/icons/ + cp /usr/share/asciidoc/icons/tip.png images/icons/ + +html-stamp: grml-live.txt grml-live-remaster.txt grml-live-db.txt + asciidoc -b xhtml11 -a icons -a toc -a numbered grml-live.txt + asciidoc -b xhtml11 -a icons grml-live-remaster.txt + asciidoc -b xhtml11 -a icons grml-live-db.txt touch html-stamp doc_man: man-stamp -man-stamp: grml-live.txt +man-stamp: grml-live.txt grml-live-remaster.txt asciidoc -d manpage -b docbook grml-live.txt - sed -i 's///' grml-live.xml - xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live.xml - # ugly hack to avoid duplicate empty lines in manpage - # notice: docbook-xsl 1.71.0.dfsg.1-1 is broken! make sure you use 1.68.1.dfsg.1-0.2! - cp grml-live.8 grml-live.8.tmp - uniq grml-live.8.tmp > grml-live.8 - rm grml-live.8.tmp + xsltproc --novalid /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live.xml + asciidoc -d manpage -b docbook grml-live-remaster.txt + xsltproc --novalid /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live-remaster.xml + asciidoc -d manpage -b docbook grml-live-db.txt + xsltproc --novalid /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml-live-db.xml touch man-stamp -clean: - rm -rf grml-live.html grml-live.xml grml-live.8 html-stamp man-stamp +doc_epub: epub-stamp + +epub-stamp: + a2x --icons -a toc -a toclevels=3 -a docinfo -f epub grml-live.txt + touch epub-stamp + +doc_pdf: pdf-stamp -online: - scp grml-live.html grml:/var/www/grml/grml-live/index.html +pdf-stamp: + a2x --icons -a toc -a toclevels=3 -a docinfo -f pdf grml-live.txt + touch pdf-stamp + +online: icons doc_html doc_epub doc_pdf + # this is assume that a checkout of grml.org.git is available + # next to grml-live.git as "grml.org" + test -d ../../grml.org/grml-live || exit 1 + cp grml-live.html ../../grml.org/grml-live/index.html + cp grml-live.pdf ../../grml.org/grml-live/ + cp grml-live.epub ../../grml.org/grml-live/ + +clean: + rm -rf images/icons + rm -f grml-live-remaster.html grml-live-remaster.xml grml-live-remaster.8 + rm -f grml-live.html grml-live.xml grml-live.8 grml-live.epub grml-live.pdf + rm -f grml-live-db.html grml-live-db.xml grml-live-db.8 + rm -f html-stamp man-stamp epub-stamp pdf-stamp