Fix version number in tarball.sh
[grml2usb.git] / Makefile
1 all: doc
2
3 doc: doc_man doc_html
4
5 doc_html: html-stamp
6
7 html-stamp: grml2usb.8.txt
8         asciidoc -b xhtml11 -a icons -a toc -a numbered grml2usb.8.txt
9         touch html-stamp
10
11 doc_man: man-stamp
12
13 man-stamp: grml2usb.8.txt
14         asciidoc -d manpage -b docbook grml2usb.8.txt
15         sed -i 's/<emphasis role="strong">/<emphasis role="bold">/' grml2usb.8.xml
16         xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl grml2usb.8.xml
17         # ugly hack to avoid duplicate empty lines in manpage
18         # notice: docbook-xsl 1.71.0.dfsg.1-1 is broken! make sure you use 1.68.1.dfsg.1-0.2!
19         cp grml2usb.8 grml2usb.8.tmp
20         uniq grml2usb.8.tmp > grml2usb.8
21         # ugly hack to avoid '.sp' at the end of a sentence or paragraph:
22         sed -i 's/\.sp//' grml2usb.8
23         rm grml2usb.8.tmp
24         touch man-stamp
25
26 online: all
27         scp grml2usb.8.html grml:/var/www/grml/grml2usb/index.html
28         scp images/icons/*          grml:/var/www/grml/grml2usb/images/icons/
29         scp images/screenshot.png   grml:/var/www/grml/grml2usb/images/
30
31 tarball: all
32         ./tarball.sh
33
34 tarball-online: all
35         scp grml2usb.tgz grml2usb.tgz.md5.asc grml:/var/www/grml/grml2usb/
36
37 clean:
38         rm -rf grml2usb.8.html grml2usb.8.xml grml2usb.8 html-stamp man-stamp grml2usb.tar.gz
39
40 codecheck:
41         pylint --include-ids=y --max-line-length=120 grml2usb
42         # pylint --include-ids=y --disable-msg-cat=C0301 --disable-msg-cat=W0511 grml2usb
43         # pylint --reports=n --include-ids=y --disable-msg-cat=C0301 grml2usb
44
45 # graph:
46 #       sudo pycallgraph grml2usb /grml/isos/grml-small_2008.11.iso /dev/sdb1