]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - makefile
Add another TODO.
[dunshire.git] / makefile
index 95eb2075a047c007a046684e3790c711ba27132c..511f2cc0fa17b948aeaca578c3331ad18c5b5502 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,14 @@
-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: doctest
+doctest:
+       cd doc && $(MAKE) doctest
 
 .PHONY: check
 check:
@@ -6,11 +16,8 @@ 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