]> gitweb.michael.orlitzky.com - dunshire.git/blob - makefile
Build looping into the test suite and make doctests optional.
[dunshire.git] / makefile
1 PN := dunshire
2 SRCS := $(PN)/*.py test/*.py
3
4 # Sphinx tries to keep track of which docs need to be built on its
5 # own. We could do better, but we would have to duplicate all of the
6 # information that we already gave Sphinx to make it work.
7 .PHONY: doc
8 doc:
9 cd doc && $(MAKE) html
10
11 .PHONY: doctest
12 doctest:
13 cd doc && $(MAKE) doctest
14
15 .PHONY: check
16 check:
17 PYTHONPATH="." test/__main__.py
18
19 .PHONY: checkloop
20 checkloop:
21 PYTHONPATH="." test/__main__.py --no-doctests --loop
22
23 .PHONY: lint
24 lint:
25 pylint --rcfile=./.pylintrc $(SRCS)
26
27 .PHONY: clean
28 clean:
29 rm -rf $(PN)/__pycache__ test/__pycache__ doc/build
30 rm -rf $(PN).egg-info