Makefile 476 B

12345678910111213141516
  1. .PHONY: all clean
  2. all: $(WWW_ROOT) before.html $(WWW_ROOT)/index.html $(WWW_ROOT)/index_slides.html
  3. before.html: before.md
  4. pandoc -o $@ $<
  5. $(WWW_ROOT)/index.html: index.md
  6. sed -r 's/#include (.*)/cat \1\n/e' $< | pandoc --template template.html --toc --toc-depth 1 --include-before before.html -s -o $@
  7. $(WWW_ROOT)/index_slides.html: index.md
  8. sed -r 's/#include (.*)/cat \1\n/e' $< | pandoc --template template_slidy.html --toc-depth 1 -t slidy -s -o $@
  9. clean: