X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=511f2cc0fa17b948aeaca578c3331ad18c5b5502;hb=08abee864006192c364c25f22c3755e89e310b9b;hp=ca681470d68f08f9f9ef2c62a27c7b503b4c69d7;hpb=6c7297a16a2d46d429bf598ec8803db6d5d8942d;p=dunshire.git diff --git a/makefile b/makefile index ca68147..511f2cc 100644 --- a/makefile +++ b/makefile @@ -1,3 +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: + pylint --rcfile=./.pylintrc $(SRCS) + .PHONY: clean clean: - rm -r __pycache__ + rm -rf $(SRCDIR)/__pycache__ doc/build