X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2FMakefile;fp=doc%2FMakefile;h=d6bfdacd321748b114869936fcdca79ced78464a;hb=1ba974b83d19fc41bf80acd52726f36f7f1df297;hp=0000000000000000000000000000000000000000;hpb=4db69a460ad5d18d33cbf5c3ef74ad584d9e2886;p=tinyos-2.x.git diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 00000000..d6bfdacd --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,26 @@ +OVERVIEW = txt/overview.txt +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 + + +STYLESHEET = stylesheets/doc.css + +HTML = $(OVERVIEW_HTML) + +all: overview teps + +$(OVERVIEW_HTML): $(OVERVIEW) $(STYLESHEET) + rst2html.py --stylesheet-path=$(STYLESHEET) --embed-stylesheet $< > html/$@ + +%.html: txt/%.txt $(TEP_STYLESHEET) + rst2html.py --stylesheet-path=$(TEP_STYLESHEET) --embed-stylesheet $< > html/$@ + +overview: $(OVERVIEW_HTML) + +teps: $(TEPS_HTML) + +clean: + rm -f html/*.html txt/*~ +