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.
 
 
 
 
 
 

30 lines
479 B

  1. # ReStructuredText Makefile
  2. RST2HTML= rst2html.py
  3. RST2LATEX= rst2latex.py
  4. LATEX2PDF= pdflatex
  5. RSTFILES= $(wildcard *.rst)
  6. HTMLFILES= $(RSTFILES:.rst=.html)
  7. LATEXFILES= $(RSTFILES:.rst=.tex)
  8. PDFFILES= $(RSTFILES:.rst=.pdf)
  9. all: html pdf
  10. html: $(HTMLFILES)
  11. latex: $(LATEXFILES)
  12. pdf: $(PDFFILES)
  13. %.html: %.rst
  14. $(RST2HTML) $< > $@
  15. %.tex: %.rst
  16. $(RST2LATEX) $< > $@
  17. %.pdf: %.tex
  18. $(LATEX2PDF) $<
  19. clean:
  20. rm -f $(HTMLFILES) $(LATEXFILES) $(PDFFILES)
  21. rm -f *.aux *.log *.out