# Makefile for the SST2K project
-VERS=$(shell sed <sst.py -n -e '/version *= \"*\(.*\)\"/s//\1/p')
+VERS=$(shell sed <sst -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 control $(DOCS)
+SOURCES = sst Makefile replay doc/makehelp.py control $(DOCS)
all: super-star-trek-$(VERS).tar.gz
install: sst.6
- cp sst.py $(BINDIR)
+ cp sst $(BINDIR)
gzip <sst.6 >$(MANDIR)/sst.6.gz
sst.6: doc/sst.xml
dist: sst-$(VERS).tar.gz
-check: #pylint
- cd test; $(MAKE) --quiet
+check: pylint
+ @cd test >/dev/null; $(MAKE) --quiet
-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,C1801,E1120,R0101,R0902,R0903,R0911,R0912,R0914,R0915,R0916,R1705,R1711,R1714,R1716,R1723,R1724,R1706,R1710,W0110,W0123,W0141,W0232,W0312,W0603,W0611
pylint:
- @pylint --output-format=parseable $(PYLINTOPTS) sst.py
+ @pylint --score=n sst
clean:
- rm -f sst.6 sst.html
+ rm -f sst.6 sst.html sst-doc.html
rm -f *.6 MANIFEST index.html
SHIPPER = version=$(VERS) bkgimage=lpt.jpg