You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # 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
|