Makefile 424 B

123456789101112131415161718
  1. .PHONY: all clean
  2. all: before.html $(WWW_ROOT)/index.html $(WWW_ROOT)/index_slides.html
  3. cp *.svg $(WWW_ROOT)
  4. before.html: before.md
  5. pandoc -o $@ $<
  6. $(WWW_ROOT)/index.html: index.md
  7. pandoc --template template.html --toc --toc-depth 1 --include-before before.html -s -o $@ $<
  8. $(WWW_ROOT)/index_slides.html: index.md
  9. pandoc --template template_slidy.html --toc-depth 1 -t slidy -s -o $@ $<
  10. clean:
  11. rm -f before.html