Makefile 547 B

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