Makefile 514 B

1234567891011121314151617181920
  1. .PHONY: all clean
  2. DOT_FILES = $(shell find . -name "*.dot")
  3. SVG_FILES = $(DOT_FILES:.dot=.svg)
  4. all: $(SVG_FILES) $(WWW_ROOT)/CM2.html $(WWW_ROOT)/CM2_slides.html
  5. cp *.svg *.png $(WWW_ROOT)
  6. %.svg: %.dot
  7. dot -Tsvg -o $@ $<
  8. $(WWW_ROOT)/CM2.html: CM2.md
  9. pandoc --template ../www/template.html --toc --toc-depth 1 --include-before ../www/before.html -s -o $@ $<
  10. $(WWW_ROOT)/CM2_slides.html: CM2.md
  11. pandoc --template ../www/template_slidy.html --toc-depth 1 -t slidy -s -o $@ $<
  12. clean:
  13. rm -rf $(SVG_FILES)