summaryrefslogtreecommitdiff
path: root/slidy/Makefile
blob: b7d07d927acd6621b6ef0749e0ee4a7c4d4d57f8 (plain)
  1. pandoc_sources := $(wildcard *.mkd)
  2. presentations = $(pandoc_sources:%.mkd=%/index.html)
  3. #aux = slidy.css
  4. all: $(presentations)
  5. # TODO: use --offline when working with Debian packaging of Pandoc
  6. $(presentations): %/index.html : %.mkd
  7. mkdir -p $(dir $@)
  8. pandoc --from Markdown --to Slidy -o $@ -s $<
  9. perl -i -pe 's{http://www.w3.org/Talks/Tools/Slidy2/(?:styles|scripts)/(slidy.(?:css|js))(?:\.gz)?}{../../../slidy/$$1}g' $@