Makefile 544 B

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