[Epydoc-commits] SF.net SVN: epydoc: [1458] trunk/epydoc/Makefile
Brought to you by:
edloper
|
From: <ed...@us...> - 2007-02-11 05:52:31
|
Revision: 1458
http://svn.sourceforge.net/epydoc/?rev=1458&view=rev
Author: edloper
Date: 2007-02-10 21:52:27 -0800 (Sat, 10 Feb 2007)
Log Message:
-----------
- Replaced implementation of doctest-html target with a more makefile-like
one (the old one use a shell script; and in the comments for SF bug
#1655963, someone indicated that it wasn't working for them.)
Modified Paths:
--------------
trunk/epydoc/Makefile
Modified: trunk/epydoc/Makefile
===================================================================
--- trunk/epydoc/Makefile 2007-02-11 05:46:59 UTC (rev 1457)
+++ trunk/epydoc/Makefile 2007-02-11 05:52:27 UTC (rev 1458)
@@ -136,17 +136,14 @@
--name "Epydoc $(VERSION)" $(PY_SRC) -v --debug
touch .api-pdf.up2date
-doctest-html: .doctest-html.up2date
-.doctest-html.up2date: $(DOCTESTS)
- rm -rf $(HTML_DOCTEST)
+# Convert doctest files to HTML, using rst2html.
+DOCTEST_HTML_FILES := \
+ $(DOCTESTS:src/epydoc/test/%.doctest=$(HTML_DOCTEST)/%.html)
+doctest-html: doctest-html-mkdir $(DOCTEST_HTML_FILES)
+doctest-html-mkdir:
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
+$(HTML_DOCTEST)/%.html: src/epydoc/test/%.doctest
+ $(RST2HTML) $< $@
examples: .examples.up2date
.examples.up2date: $(EXAMPLES_SRC) $(PY_SRCFILES)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|