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.
 
 
 
 
 
 

39 lines
668 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. html: $(HTMLFILES)
  15. cd man && $(MAKE) $@
  16. latex: $(LATEXFILES)
  17. pdf: $(PDFFILES)
  18. %.html: %.txt
  19. $(RST2HTML) $< > $@
  20. %.tex: %.txt
  21. $(RST2LATEX) $< > $@
  22. %.pdf: %.tex
  23. $(LATEX2PDF) $<
  24. clean:
  25. for dir in $(SUBDIRS) ; do \
  26. (cd $$dir && $(MAKE) $@) ; \
  27. done
  28. rm -f $(HTMLFILES) $(LATEXFILES) $(PDFFILES)
  29. rm -f *.aux *.log *.out