X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2FMakefile;h=5934a5b1fc402dec7f33034383e9caf29335512c;hb=482068258ca09552c7809c3bf0df113a35841ccb;hp=d6bfdacd321748b114869936fcdca79ced78464a;hpb=1ba974b83d19fc41bf80acd52726f36f7f1df297;p=tinyos-2.x.git diff --git a/doc/Makefile b/doc/Makefile index d6bfdacd..5934a5b1 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,10 +16,10 @@ 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/$@ + $(RST2HTML) --stylesheet-path=$(TEP_STYLESHEET) --embed-stylesheet $< > html/$@ overview: $(OVERVIEW_HTML)