X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=511f2cc0fa17b948aeaca578c3331ad18c5b5502;hb=08abee864006192c364c25f22c3755e89e310b9b;hp=10742db350df3a78805825b5f87459661887aeb8;hpb=21f85dc3effec30c4c8395af57e83d98247a4ab6;p=dunshire.git diff --git a/makefile b/makefile index 10742db..511f2cc 100644 --- a/makefile +++ b/makefile @@ -1,11 +1,23 @@ +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: python test/suite.py .PHONY: lint lint: - PYTHONPATH="src/dunshire" pylint --reports=n src/dunshire/*.py + pylint --rcfile=./.pylintrc $(SRCS) .PHONY: clean clean: - rm -rf src/dunshire/__pycache__ + rm -rf $(SRCDIR)/__pycache__ doc/build