Makefile 520 B

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