2 SRCS := $(PN)/*.py test/*.py
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. Thus the
7 # "doc" target will unconditionally invoke sphinx.
10 cd doc && $(MAKE) html
12 # Run the doctests contained in the sphinx documentation, which aren't
13 # run as part of the normal test suite (because nobody wants to wait
17 cd doc && $(MAKE) doctest
19 # Run the test suite once.
22 PYTHONPATH="." test/__main__.py
24 # Run the test suite forever, but only the parts of it that are
28 PYTHONPATH="." test/__main__.py --no-doctests --loop
30 # Run pylint to obtain some unconstructive criticism on my coding style.
33 pylint --rcfile=./.pylintrc $(SRCS)
35 # Create a source distribution tarball. First we clean up, to make
36 # sure no junk gets added to the distribution. Then we build the docs
37 # so that users will get some usable HTML documentation and not just
46 rm -rf $(PN)/__pycache__ test/__pycache__ doc/build