Makefile 456 B

12345678910111213141516171819202122232425
  1. PANDOC = pandoc
  2. default: all
  3. all_markdown = \
  4. psa-conditional-inclusion-c.md \
  5. psa-driver-developer-guide.md \
  6. psa-driver-integration-guide.md \
  7. psa-driver-interface.md \
  8. # This line is intentionally left blank
  9. html: $(all_markdown:.md=.html)
  10. pdf: $(all_markdown:.md=.pdf)
  11. all: html pdf
  12. .SUFFIXES:
  13. .SUFFIXES: .md .html .pdf
  14. .md.html:
  15. $(PANDOC) -o $@ $<
  16. .md.pdf:
  17. $(PANDOC) -o $@ $<
  18. clean:
  19. rm -f *.html *.pdf