+PN := dunshire
+SRCDIR := src/$(PN)
+TESTDIR := src/test
+SRCS := $(SRCDIR)/*.py
+
+doc: $(SRCS) doc/source/conf.py doc/makefile
+ cd doc && $(MAKE) html
+
+.PHONY: doctest
+doctest:
+ cd doc && $(MAKE) doctest
+
.PHONY: check
check:
- python test/suite.py
+ PYTHONPATH=src python $(TESTDIR)/suite.py
.PHONY: lint
lint:
- PYTHONPATH="src/dunshire" pylint --reports=n src/dunshire/*.py
+ pylint --rcfile=./.pylintrc $(SRCS)
.PHONY: clean
clean:
- rm -r __pycache__
+ rm -rf $(SRCDIR)/__pycache__ $(TESTDIR)/__pycache__ doc/build