]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
added capability for building pdfs from rst
authorbeutel <beutel>
Wed, 20 Jun 2007 20:00:35 +0000 (20:00 +0000)
committerbeutel <beutel>
Wed, 20 Jun 2007 20:00:35 +0000 (20:00 +0000)
minor cosmetic fix to table in tep103

doc/Makefile
doc/txt/tep103.txt

index 5934a5b1fc402dec7f33034383e9caf29335512c..c2ffc6a1c416c9432fec2d4ce2f4f1732ba15c9e 100644 (file)
@@ -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
 
index d90ad7fe565fb8587807ea355c4616c8b483f247..31a3571cdc00054664a7def9bfdbcb7546803aa2 100644 (file)
@@ -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)
   =============  ==================  =================  ===================