From 7f18261cd2d714f75dba17d6cfc04d14730afafb Mon Sep 17 00:00:00 2001 From: beutel Date: Wed, 20 Jun 2007 20:00:35 +0000 Subject: [PATCH] added capability for building pdfs from rst minor cosmetic fix to table in tep103 --- doc/Makefile | 19 +++++++++++++++---- doc/txt/tep103.txt | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 5934a5b1..c2ffc6a1 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,30 +1,41 @@ OVERVIEW = txt/overview.txt OVERVIEW_HTML = $(subst txt/,,$(subst .txt,.html,$(OVERVIEW))) +STYLESHEET = stylesheets/doc.css +HTML = $(OVERVIEW_HTML) TEPS = $(wildcard txt/*.txt) TEPS_HTML = $(subst txt/,,$(subst .txt,.html,$(TEPS))) +TEPS_TEX = $(subst txt/,,$(subst .txt,.tex,$(TEPS))) TEP_STYLESHEET = stylesheets/tep.css #override for different docutils installations ifndef RST2HTML RST2HTML= rst2html.py endif +ifndef RST2LATEX +RST2LATEX= rst2latex.py +endif -STYLESHEET = stylesheets/doc.css - -HTML = $(OVERVIEW_HTML) all: overview teps +pdf: $(TEPS_TEX) + + + $(OVERVIEW_HTML): $(OVERVIEW) $(STYLESHEET) $(RST2HTML) --stylesheet-path=$(STYLESHEET) --embed-stylesheet $< > html/$@ %.html: txt/%.txt $(TEP_STYLESHEET) $(RST2HTML) --stylesheet-path=$(TEP_STYLESHEET) --embed-stylesheet $< > html/$@ +%.tex: txt/%.txt + $(RST2LATEX) $< > pdf/$@ + pdflatex -output-directory pdf $@ + overview: $(OVERVIEW_HTML) teps: $(TEPS_HTML) clean: - rm -f html/*.html txt/*~ + rm -f html/*.html txt/*~ pdf/*.log pdf/*.out pdf/*.tex pdf/*.aux diff --git a/doc/txt/tep103.txt b/doc/txt/tep103.txt index d90ad7fe..31a3571c 100644 --- a/doc/txt/tep103.txt +++ b/doc/txt/tep103.txt @@ -41,7 +41,7 @@ significantly different tradeoffs than other flash chips: ============= ================== ================= =================== - X NOR AT45DB NAND + X NOR AT45DB NAND (ex: ST M25P40, (ex: Samsung Intel PXA27x) K9K1G08R0B) ============= ================== ================= =================== -- 2.39.2