From: beutel Date: Wed, 13 Jun 2007 15:12:04 +0000 (+0000) Subject: added override for different docutil installations using RST2HTML env variable X-Git-Tag: release_tools_1_2_4_1~128 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=9967ddb9074fb2f7fe532edae58af2c026a9f2bc;p=tinyos-2.x.git added override for different docutil installations using RST2HTML env variable --- diff --git a/doc/Makefile b/doc/Makefile index d6bfdacd..4aa308c2 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -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/$@