X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=doc%2FMakefile;fp=doc%2FMakefile;h=19bccb7e803824d6d5b678f760680f66352f5cd2;hp=0000000000000000000000000000000000000000;hb=01db40988b6161a133af7cb5db33fcd62097a1ab;hpb=8e1e332e6e2057852da6b3565d2af1f35d1f84c9 diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..19bccb7 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,32 @@ +all: doc + +doc: doc_man doc_html + +doc_html: html-stamp + +html-stamp: mbr.8.txt + asciidoc -b xhtml11 -a icons mbr.8.txt + touch html-stamp + +doc_man: man-stamp + +man-stamp: mbr.8.txt + asciidoc -d manpage -b docbook mbr.8.txt + sed -i 's///' mbr.8.xml + xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl mbr.8.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 mbr.8 mbr.8.tmp + uniq mbr.8.tmp > mbr.8 + # ugly hack to avoid '.sp' at the end of a sentence or paragraph: + sed -i 's/\.sp//' mbr.8 + rm mbr.8.tmp + touch man-stamp + +#online: all +# scp mbr.8.html grml:/var/www/grml/mbr/index.html +# scp images/icons/* grml:/var/www/grml/mbr/images/icons/ +# scp images/screenshot.png grml:/var/www/grml/mbr/images/ + +clean: + rm -rf mbr.8.html mbr.8.xml mbr.8 html-stamp man-stamp