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.
 
 
 
 
 
 

41 lines
683 B

  1. SUBDIRS= lib tools man
  2. all install uninstall:
  3. for dir in $(SUBDIRS) ; do \
  4. (cd $$dir && $(MAKE) $@) ; \
  5. done
  6. # reStructuredText Makefile
  7. RST2HTML= rst2html.py
  8. RST2LATEX= rst2latex.py
  9. LATEX2PDF= pdflatex
  10. RSTFILES= $(wildcard *.txt)
  11. HTMLFILES= $(RSTFILES:.txt=.html)
  12. LATEXFILES= $(RSTFILES:.txt=.tex)
  13. PDFFILES= $(RSTFILES:.txt=.pdf)
  14. all: html pdf
  15. html: $(HTMLFILES)
  16. cd man && $(MAKE) $@
  17. latex: $(LATEXFILES)
  18. pdf: $(PDFFILES)
  19. %.html: %.txt
  20. $(RST2HTML) $< > $@
  21. %.tex: %.txt
  22. $(RST2LATEX) $< > $@
  23. %.pdf: %.tex
  24. $(LATEX2PDF) $<
  25. clean:
  26. for dir in $(SUBDIRS) ; do \
  27. (cd $$dir && $(MAKE) $@) ; \
  28. done
  29. rm -f $(HTMLFILES) $(LATEXFILES) $(PDFFILES)
  30. rm -f *.aux *.log *.out