Track move to gitlab.
[super-star-trek.git] / Makefile
index e229363c95bfe1db2863497055c4cdcd54c30fa1..36e5a7c2f56231997306ecac348a3df361317fbe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # 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
@@ -29,12 +29,27 @@ sst-$(VERS).tar.gz: $(SOURCES) sst.6
 
 dist: sst-$(VERS).tar.gz
 
+check: #pylint
+       cd test; make --quiet
+
 pychecker:
-       @-pychecker --only --limit 50 sst.py
+       @-pychecker --quiet --only --limit 50 sst.py
+
+COMMON_PYLINT = --rcfile=/dev/null --reports=n \
+       --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
+       --dummy-variables-rgx='^_'
+PYLINTOPTS = $(COMMON_PYLINT) --disable=C0103,C0111,C0113,C1001,C0301,C0302,C0321,C0325,C0326,C0410,E1120,R0101,R0902,R0903,R0911,R0912,R0914,R0915,R0916,W0110,W0123,W0141,W0312,W0603,W0611
+pylint:
+       @pylint --output-format=parseable $(PYLINTOPTS) sst.py
 
 clean:
        rm -f sst.6 sst.html
-       rm -f *.6 MANIFEST index.html SHIPPER.*
+       rm -f *.6 MANIFEST index.html
 
 release: sst-$(VERS).tar.gz sst.html
-       shipper -u -m -t; make clean
+       shipper version=$(VERS) | sh -e -x
+       cd www; upload
+
+refresh: sst.html
+       shipper -N -w version=$(VERS) | sh -e -x
+       cd www; upload