Makefile 506 B

123456789101112131415161718
  1. HTML_FILES = index.html index_slides.html
  2. all: $(HTML_FILES)
  3. mkdir -p ../tmp/
  4. cp $(HTML_FILES) template.css slidy.css slidy.js ../tmp
  5. before.html: before.md
  6. pandoc -o $@ $<
  7. index.html: index.md before.html
  8. pandoc --template template.html --css template.css --toc --toc-depth 1 --include-before before.html -s -o $@ $<
  9. index_slides.html: index.md before.html
  10. pandoc --css slidy.css --template template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
  11. clean:
  12. rm -f $(HTML_FILES) before.html