]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - makefile
Remove docs with `make clean`.
[dunshire.git] / makefile
index e619d42b0c5ac2d09e3e62ce10f752df961d60de..db76ca1b6d367bc3f693b6c9945efbee641c1fd0 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,9 @@
 SRCDIR := src/dunshire
+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:
@@ -6,11 +11,8 @@ check:
 
 .PHONY: lint
 lint:
-       PYTHONPATH="$(SRCDIR)" pylint \
-               --reports=n \
-               --good-names='b,c,h,A,C,G,_K,_L' \
-               $(SRCDIR)/*.py
+       PYTHONPATH="$(SRCDIR)" pylint --rcfile=./.pylintrc $(SRCS)
 
 .PHONY: clean
 clean:
-       rm -rf $(SRCDIR)/__pycache__
+       rm -rf $(SRCDIR)/__pycache__ doc/build