]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - makefile
Clean up a bit of the import mess.
[dunshire.git] / makefile
index 95eb2075a047c007a046684e3790c711ba27132c..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,indented_L' \
-               $(SRCDIR)/*.py
+       PYTHONPATH="$(SRCDIR)" pylint --rcfile=./.pylintrc $(SRCS)
 
 .PHONY: clean
 clean:
-       rm -rf $(SRCDIR)/__pycache__
+       rm -rf $(SRCDIR)/__pycache__ doc/build