]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - doc/Makefile
added override for different docutil installations using RST2HTML env variable
[tinyos-2.x.git] / doc / Makefile
index d6bfdacd321748b114869936fcdca79ced78464a..4aa308c25958d706e3d4d64c4fb83cd95c727544 100644 (file)
@@ -3,7 +3,11 @@ OVERVIEW_HTML = $(subst txt/,,$(subst .txt,.html,$(OVERVIEW)))
 TEPS = $(wildcard txt/*.txt)
 TEPS_HTML = $(subst txt/,,$(subst .txt,.html,$(TEPS)))
 TEP_STYLESHEET = stylesheets/tep.css
+
+#override for different docutils installations
+ifndef RST2HTML
+RST2HTML= rst2html.py
+endif
 
 STYLESHEET = stylesheets/doc.css
 
@@ -12,7 +16,7 @@ HTML = $(OVERVIEW_HTML)
 all: overview teps
 
 $(OVERVIEW_HTML): $(OVERVIEW) $(STYLESHEET)
-       rst2html.py --stylesheet-path=$(STYLESHEET) --embed-stylesheet $< > html/$@
+       $(RST2HTML) --stylesheet-path=$(STYLESHEET) --embed-stylesheet $< > html/$@
 
 %.html: txt/%.txt $(TEP_STYLESHEET)
        rst2html.py --stylesheet-path=$(TEP_STYLESHEET) --embed-stylesheet $< > html/$@