HTML_FILES = index.html index_slides.html all: $(HTML_FILES) mkdir -p ../tmp/ cp $(HTML_FILES) template.css slidy.css slidy.js ../tmp before.html: before.md pandoc -o $@ $< index.html: index.md before.html pandoc --template template.html --css template.css --toc --toc-depth 1 --include-before before.html -s -o $@ $< index_slides.html: index.md before.html pandoc --css slidy.css --template template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $< clean: rm -f $(HTML_FILES) before.html