-SRCDIR := src/dunshire
+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:
- PYTHONPATH="$(SRCDIR)" pylint \
- --reports=n \
- --good-names='b,c,h,A,C,G,_K,_L,indented_L' \
- $(SRCDIR)/*.py
+ pylint --rcfile=./.pylintrc $(SRCS)
.PHONY: clean
clean:
- rm -rf $(SRCDIR)/__pycache__
+ rm -rf src/$(PN)/__pycache__ src/test/__pycache__ doc/build