-SRCDIR := src/dunshire
+PN := dunshire
+SRCDIR := src/$(PN)
+SRCS := $(SRCDIR)/*.py
+
+doc: $(SRCS) doc/source/conf.py doc/makefile
+ sphinx-apidoc -f -o doc/source $(SRCDIR)
+ cd doc && $(MAKE) html
.PHONY: check
check:
.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 $(SRCDIR)/__pycache__ doc/build