3 SPHINXBUILD = $(PYTHON) -m sphinx
5 DOCHTML = $(DOCDIR)/html
6 DOCTREES = $(DOCDIR)/doctrees
7 ALLSPHINXOPTS = -d $(DOCTREES) $(SPHINXOPTS) $(DOCDIR)
10 RSTFILES = doc/index.rst doc/module.rst NEWS README.rst doc/conf.py
15 $(PYTHON) ./setup.py build_ext --inplace
17 $(DOCHTML)/index.html: $(MODNAME) $(RSTFILES) acl.c
18 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCHTML)
21 doc: $(DOCHTML)/index.html
24 fakeroot $(PYTHON) ./setup.py sdist
27 @for ver in 2.7 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7; do \
28 for flavour in "" "-dbg"; do \
29 if type python$$ver$$flavour >/dev/null; then \
30 echo Testing with python$$ver$$flavour; \
31 python$$ver$$flavour ./setup.py test -q; \
35 for pp in pypy pypy3; do \
36 if type $$pp >/dev/null; then \
37 echo Testing with $$pp; \
38 $$pp ./setup.py test -q; \
44 $(MAKE) test CFLAGS="-coverage"
45 lcov --capture --directory . --output-file coverage.info
46 genhtml coverage.info --output-directory out
49 rm -rf $(DOCHTML) $(DOCTREES)
54 .PHONY: doc test clean dist coverage