]> gitweb.michael.orlitzky.com - dunshire.git/blob - makefile
Enable doctesting of ReST docs with `make doctest`.
[dunshire.git] / makefile
1 PN := dunshire
2 SRCDIR := src/$(PN)
3 SRCS := $(SRCDIR)/*.py
4
5 doc: $(SRCS) doc/source/conf.py doc/makefile
6 sphinx-apidoc -f -o doc/source $(SRCDIR)
7 cd doc && $(MAKE) html
8
9 .PHONY: doctest
10 doctest:
11 cd doc && $(MAKE) doctest
12
13 .PHONY: check
14 check:
15 python test/suite.py
16
17 .PHONY: lint
18 lint:
19 pylint --rcfile=./.pylintrc $(SRCS)
20
21 .PHONY: clean
22 clean:
23 rm -rf $(SRCDIR)/__pycache__ doc/build