2 SPHINXBUILD = sphinx-build
4 DOCHTML = $(DOCDIR)/html
5 DOCTREES = $(DOCDIR)/doctrees
6 ALLSPHINXOPTS = -d $(DOCTREES) $(SPHINXOPTS) $(DOCDIR)
9 RSTFILES = doc/index.rst doc/module.rst NEWS README.rst doc/conf.py
14 ./setup.py build_ext --inplace
16 $(DOCHTML)/index.html: $(MODNAME) $(RSTFILES)
17 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCHTML)
20 doc: $(DOCHTML)/index.html
23 fakeroot ./setup.py sdist
26 @for ver in 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4 3.5; do \
27 if type python$$ver >/dev/null; then \
28 echo Testing with python$$ver; \
29 python$$ver ./setup.py test -q; \
32 @if type pypy >/dev/null; then \
33 echo Testing with pypy; \
34 pypy ./setup.py test -q; \
38 rm -rf $(DOCHTML) $(DOCTREES)
43 .PHONY: doc test clean dist