[Tinyos-2-commits] CVS: tinyos-2.x/doc Makefile,1.4,1.5

Jan Beutel beutel at users.sourceforge.net
Wed Jun 20 13:00:38 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/doc
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv28269/doc

Modified Files:
	Makefile 
Log Message:
added capability for building pdfs from rst
minor cosmetic fix to table in tep103

Index: Makefile
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/doc/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Makefile	13 Jun 2007 15:32:12 -0000	1.4
--- Makefile	20 Jun 2007 20:00:36 -0000	1.5
***************
*** 1,6 ****
--- 1,9 ----
  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
  
***************
*** 9,19 ****
  RST2HTML= rst2html.py
  endif
  
- STYLESHEET = stylesheets/doc.css
- 
- HTML = $(OVERVIEW_HTML)
  
  all: overview teps
  
  $(OVERVIEW_HTML): $(OVERVIEW) $(STYLESHEET)
  	$(RST2HTML) --stylesheet-path=$(STYLESHEET) --embed-stylesheet $< > html/$@
--- 12,26 ----
  RST2HTML= rst2html.py
  endif
+ ifndef RST2LATEX
+ RST2LATEX= rst2latex.py
+ endif
  
  
  all: overview teps
  
+ pdf: $(TEPS_TEX) 
+ 
+ 
+ 
  $(OVERVIEW_HTML): $(OVERVIEW) $(STYLESHEET)
  	$(RST2HTML) --stylesheet-path=$(STYLESHEET) --embed-stylesheet $< > html/$@
***************
*** 22,25 ****
--- 29,36 ----
  	$(RST2HTML) --stylesheet-path=$(TEP_STYLESHEET) --embed-stylesheet $< > html/$@
  
+ %.tex: txt/%.txt 
+ 	$(RST2LATEX) $< > pdf/$@
+ 	pdflatex -output-directory pdf $@
+ 
  overview: $(OVERVIEW_HTML)
  
***************
*** 27,30 ****
  
  clean:
! 	rm -f html/*.html txt/*~ 
  
--- 38,41 ----
  
  clean:
! 	rm -f html/*.html txt/*~ pdf/*.log pdf/*.out pdf/*.tex pdf/*.aux
  



More information about the Tinyos-2-commits mailing list