summaryrefslogtreecommitdiff
path: root/slidy/Makefile
blob: 2f200f06fd7a4e09922549d814a5f2c6700e9e89 (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{http://www.w3.org/Talks/Tools/Slidy2/(?:styles|scripts)/(slidy.(?:css|js))(?:\.gz)?}{../../../slidy/$$1}g' $@