X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2FMakefile;fp=doc%2FMakefile;h=4aa308c25958d706e3d4d64c4fb83cd95c727544;hb=9967ddb9074fb2f7fe532edae58af2c026a9f2bc;hp=d6bfdacd321748b114869936fcdca79ced78464a;hpb=076de84b5747ab4e758cb88d12541e7893e6a987;p=tinyos-2.x.git 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/$@