+PN := dunshire
+SRCS := src/$(PN)/*.py src/test/*.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 src/test/suite.py
.PHONY: lint
lint:
- pylint --reports=n *.py
+ pylint --rcfile=./.pylintrc $(SRCS)
.PHONY: clean
clean:
- rm -r __pycache__
+ rm -rf src/$(PN)/__pycache__ src/test/__pycache__ doc/build