blob: 2f200f06fd7a4e09922549d814a5f2c6700e9e89 (
plain)
- pandoc_sources := $(wildcard *.mkd)
- presentations = $(pandoc_sources:%.mkd=%/index.html)
- #aux = slidy.css
- all: $(presentations)
- # TODO: use --offline when working with Debian packaging of Pandoc
- # FIXME: only add local stylesheet if it already exist in target dir
- $(presentations): %/index.html : %.mkd
- mkdir -p $(dir $@)
- pandoc --from Markdown --to Slidy -o $@ -s -c local.css $<
- perl -i -pe 's{http://www.w3.org/Talks/Tools/Slidy2/(?:styles|scripts)/(slidy.(?:css|js))(?:\.gz)?}{../../../slidy/$$1}g' $@
|