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 once, loudly. This is used in Gentoo, for example
25 # where we want users to see the output from the test suite on the off
26 # chance that it fails and they have to report it.
29 PYTHONPATH="." test/__main__.py --verbose
31 # Run the test suite forever, but only the parts of it that are
35 PYTHONPATH="." test/__main__.py --no-doctests --loop
37 # Run pylint to obtain some unconstructive criticism on my coding style.
40 pylint --rcfile=./.pylintrc $(SRCS)
42 # Create a source distribution tarball. First we clean up, to make
43 # sure no junk gets added to the distribution. Then we build the docs
44 # so that users will get some usable HTML documentation and not just
53 rm -rf $(PN)/__pycache__ test/__pycache__ doc/build