summaryrefslogtreecommitdiff
path: root/slidy/Makefile
blob: 5c066f10d5485594baa0f5cde8194e8ce47f59f9 (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. # FIXME: only add local stylesheet if it already exist in target dir
  7. $(presentations): %/index.html : %.mkd
  8. mkdir -p $(dir $@)
  9. pandoc --from Markdown --to Slidy -o $@ -s -c local.css $<
  10. perl -i -pe 's{https?://www.w3.org/Talks/Tools/Slidy2/(?:styles|scripts)/(slidy.(?:css|js))(?:\.gz)?}{../../../slidy/$$1}g' $@