X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=Makefile;h=f697d832636e5c819fe79d110267275f424202d1;hp=b8554fd85cdc285281b34585b7c347f51ce6947e;hb=822f6f291e45b7164fa71e253d344aa0cc6d4269;hpb=543eab47532d209643cf47860e194c66b7970dc4 diff --git a/Makefile b/Makefile index b8554fd..f697d83 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,15 @@ doc: doc_man doc_html doc_html: html-stamp -html-stamp: grml2usb.8.txt - asciidoc -b xhtml11 -a icons grml2usb.8.txt +html-stamp: grml2usb.8.txt grml2iso.8.txt + asciidoc -b xhtml11 -a icons -a toc -a numbered grml2usb.8.txt + asciidoc -b xhtml11 -a icons -a toc -a numbered grml2iso.8.txt touch html-stamp doc_man: man-stamp -man-stamp: grml2usb.8.txt +man-stamp: grml2usb.8.txt grml2iso.8.txt + # grml2usb: asciidoc -d manpage -b docbook grml2usb.8.txt sed -i 's///' grml2usb.8.xml xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2usb.8.xml @@ -21,6 +23,18 @@ man-stamp: grml2usb.8.txt # ugly hack to avoid '.sp' at the end of a sentence or paragraph: sed -i 's/\.sp//' grml2usb.8 rm grml2usb.8.tmp + # grml2iso: + asciidoc -d manpage -b docbook grml2iso.8.txt + sed -i 's///' grml2iso.8.xml + xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2iso.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 grml2iso.8 grml2iso.8.tmp + uniq grml2iso.8.tmp > grml2iso.8 + # ugly hack to avoid '.sp' at the end of a sentence or paragraph: + sed -i 's/\.sp//' grml2iso.8 + rm grml2iso.8.tmp + # we're done touch man-stamp online: all @@ -31,8 +45,14 @@ online: all tarball: all ./tarball.sh +tarball-online: all + scp grml2usb.tgz grml2usb.tgz.md5.asc grml:/var/www/grml/grml2usb/ + clean: - rm -rf grml2usb.8.html grml2usb.8.xml grml2usb.8 html-stamp man-stamp grml2usb.tar.gz + rm -rf grml2usb.8.html grml2usb.8.xml grml2usb.8 + rm -rf grml2iso.8.html grml2iso.8.xml grml2iso.8 + rm -rf html-stamp man-stamp grml2usb.tar.gz grml2usb.tgz grml2usb.tgz.md5.asc + # codecheck: pylint --include-ids=y --max-line-length=120 grml2usb