summaryrefslogtreecommitdiff
path: root/blends/talk/Makefile
blob: e37108e0301f4083f12af01a327986713fe6d4e1 (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)?}{../$$1}g' $@