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 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 for ver in 2.4 2.5 2.6 3.0 3.1; do \
24 if type python$$ver >/dev/null; then \
25 echo Testing with python$$ver; \
26 python$$ver ./setup.py test; \
31 rm -rf $(DOCHTML) $(DOCTREES)
35 .PHONY: doc test clean