X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=Makefile;h=7a3f51674212e9daf907f56f6f410bfb88ae1ba3;hp=f52c685ba186e7e8956710d0bdbbe84c83cc3842;hb=9b96f214d3b94a37be5540369c2fb71bdfcb3d7e;hpb=691a25a0c38dc62ba2c64c93a05a290d7ed26b57 diff --git a/Makefile b/Makefile index f52c685..7a3f516 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,24 @@ -all: doc +all: codecheck doc 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 - # 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 grml2usb.8 grml2usb.8.tmp - uniq grml2usb.8.tmp > grml2usb.8 - # ugly hack to avoid '.sp' at the end of a sentence or paragraph: - sed -i 's/\.sp//' grml2usb.8 - rm grml2usb.8.tmp + xsltproc --novalid --nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2usb.8.xml + # grml2iso: + asciidoc -d manpage -b docbook grml2iso.8.txt + xsltproc --novalid --nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2iso.8.xml + # we're done touch man-stamp online: all @@ -28,11 +26,22 @@ online: all scp images/icons/* grml:/var/www/grml/grml2usb/images/icons/ scp images/screenshot.png grml:/var/www/grml/grml2usb/images/ +tarball: all + ./tarball.sh + +prepare-release: + ./tarball.sh --no-gpg + clean: - rm -rf grml2usb.8.html grml2usb.8.xml grml2usb.8 html-stamp man-stamp + $(MAKE) -C mbr clean + 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 --reports=n --include-ids=y ./grml2usb.py + flake8 grml2usb + isort --check-only grml2usb + black --check grml2usb -#graph: -# pycallgraph ./grml2usb.py TODO +# graph: +# sudo pycallgraph grml2usb /grml/isos/grml-small_2008.11.iso /dev/sdb1