From 660b7b104bd736dcf1ed5578184530aa072fcdae Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Mon, 30 Aug 2004 08:12:05 +0000 Subject: [PATCH] Created Makefile for converting between ReST and HTML/PDF. --- docs/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/Makefile diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..86cac32 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,29 @@ +# ReStructuredText Makefile + +RST2HTML= rst2html.py +RST2LATEX= rst2latex.py +LATEX2PDF= pdflatex + +RSTFILES= $(wildcard *.rst) +HTMLFILES= $(RSTFILES:.rst=.html) +LATEXFILES= $(RSTFILES:.rst=.tex) +PDFFILES= $(RSTFILES:.rst=.pdf) + +all: html pdf + +html: $(HTMLFILES) +latex: $(LATEXFILES) +pdf: $(PDFFILES) + +%.html: %.rst + $(RST2HTML) $< > $@ + +%.tex: %.rst + $(RST2LATEX) $< > $@ + +%.pdf: %.tex + $(LATEX2PDF) $< + +clean: + rm -f $(HTMLFILES) $(LATEXFILES) $(PDFFILES) + rm -f *.aux *.log *.out