[Epydoc-commits] SF.net SVN: epydoc: [1296] trunk/epydoc/Makefile
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-22 16:46:07
|
Revision: 1296 Author: edloper Date: 2006-08-22 09:46:03 -0700 (Tue, 22 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1296&view=rev Log Message: ----------- - Added regression tests to the web page Modified Paths: -------------- trunk/epydoc/Makefile Modified: trunk/epydoc/Makefile =================================================================== --- trunk/epydoc/Makefile 2006-08-22 16:45:49 UTC (rev 1295) +++ trunk/epydoc/Makefile 2006-08-22 16:46:03 UTC (rev 1296) @@ -13,6 +13,7 @@ PY_SRCFILES = $(shell find $(PY_SRC) -name '*.py') EXAMPLES_SRC = $(wildcard doc/*.py) DOCS = $(wildcard doc/*) +DOCTESTS = $(wildcard src/epydoc/test/*.doctest) # What version of python to use? PYTHON = python2.4 @@ -33,9 +34,11 @@ HTML_API = $(HTML)/api HTML_EXAMPLES = $(HTML)/examples HTML_STDLIB = $(HTML)/stdlib +HTML_DOCTEST = $(HTML)/doctest LATEX_API = $(LATEX)/api LATEX_STDLIB = $(LATEX)/stdlib + EPYDOC = $(PYTHON) src/epydoc/cli.py export PYTHONPATH=src/ @@ -53,6 +56,7 @@ @echo " make webpage -- build the webpage and copy it to sourceforge" @echo " make api-html -- build the HTML docs for epydoc" @echo " make api-pdf -- build the PDF docs for epydoc" + @echo " make doctest-html -- convert doctests to HTML" @echo " make examples -- build example API docs for the webpage" @echo " make stdlib-html -- build HTML docs for the Python Standard Library" @echo " make checkdocs -- check the documentation completeness" @@ -96,12 +100,14 @@ epydoc --check --tests=vars,types $(PY_SRC) .webpage.up2date: .api-html.up2date .examples.up2date .api-pdf.up2date \ - doc/epydoc-man.html doc/epydocgui-man.html $(DOCS) + .doctest-html.up2date doc/epydoc-man.html \ + doc/epydocgui-man.html $(DOCS) rm -rf $(WEBDIR) mkdir -p $(WEBDIR) cp -r $(DOCS) $(WEBDIR) cp -r $(HTML_API) $(WEBDIR)/api cp -r $(HTML_EXAMPLES) $(WEBDIR)/examples + cp -r $(HTML_DOCTEST) $(WEBDIR)/doctest cp $(LATEX_API)/api.pdf $(WEBDIR)/epydoc.pdf touch .webpage.up2date @@ -127,6 +133,18 @@ --name "Epydoc $(VERSION)" $(PY_SRC) -v touch .api-pdf.up2date +doctest-html: .doctests.up2date +.doctest-html.up2date: $(DOCTESTS) + rm -rf $(HTML_DOCTEST) + mkdir -p $(HTML_DOCTEST) + @for doctest in $(DOCTESTS); do \ + out_file=$(HTML_DOCTEST)/`basename $$doctest .doctest`.html; \ + echo rst2html $$doctest $$out_file; \ + if rst2html $$doctest $$out_file; then true; \ + else exit 1; fi\ + done + touch .doctest-html.up2date + examples: .examples.up2date .examples.up2date: $(EXAMPLES_SRC) $(PY_SRCFILES) rm -rf $(HTML_EXAMPLES) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |