]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - makefile
Add the AGPL3 license.
[dunshire.git] / makefile
index e619d42b0c5ac2d09e3e62ce10f752df961d60de..7fe104e2140476613e6a08c00c97fc5304e7ed6a 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,16 +1,21 @@
-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' \
-               $(SRCDIR)/*.py
+       pylint --rcfile=./.pylintrc $(SRCS)
 
 .PHONY: clean
 clean:
-       rm -rf $(SRCDIR)/__pycache__
+       rm -rf src/$(PN)/__pycache__ src/test/__pycache__ doc/build