Tests for deep space probes.
[super-star-trek.git] / Makefile
index 478271630a656bf33a4e4dec6bc2d96f661ead23..5c9c60007923f809bf717c586f7a528e8fb18064 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
 # Makefile for the SST2K project
 
-VERS=$(shell sed <sst.py -n -e '/version=\(.*\)/s//\1/p')
+VERS=$(shell sed <sst.py -n -e '/version *= *\(.*\)/s//\1/p')
 
 MANDIR=/usr/share/man/man1
 BINDIR=/usr/bin
 
 DOCS    = README COPYING NEWS doc/HACKING doc/sst-doc.xml doc/sst-layer.xsl doc/sst.xml
-SOURCES = sst.py Makefile replay doc/makehelp.py $(DOCS)
+SOURCES = sst.py Makefile replay doc/makehelp.py control $(DOCS)
 
 all: sst-$(VERS).tar.gz
 
@@ -29,9 +29,20 @@ sst-$(VERS).tar.gz: $(SOURCES) sst.6
 
 dist: sst-$(VERS).tar.gz
 
+check: #pylint
+       cd test; make --quiet
+
+pychecker:
+       @-pychecker --quiet --only --limit 50 sst.py
+
+PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable=C0103,C0111,C0301,C0302,C0321,R0902,R0903,R0911,R0912,R0914,R0915,W0312,W0603
+pylint:
+       @pylint --output-format=parseable $(PYLINTOPTS) sst.py
+
 clean:
        rm -f sst.6 sst.html
-       rm -f *.1 MANIFEST index.html SHIPPER.*
+       rm -f *.6 MANIFEST index.html SHIPPER.*
 
 release: sst-$(VERS).tar.gz sst.html
-       shipper -u -m -t; make clean
+       shipper -u -t; make clean
+       cd www; upload