diff --git a/makefile b/makefile index 6d70668..3008393 100644 --- a/makefile +++ b/makefile @@ -1,21 +1,33 @@ SHELL = /bin/sh -IKIWIKISETUPFILE = bavbavhaus.net.local.setup # ikiwiki .PHONY: all -all: wiki\ - $(patsubst notes/%.md,wiki/%.mdwn,$(wildcard notes/*.md))\ - refresh +all: *.md\ + public_html/css/*\ + pandoc/templates/bavbavhaus.net.html5\ + pandoc/templates/bavbavhaus.net.partial.html5\ + pandoc/csl/chicago-fullnote-sl.csl\ + pandoc/bavbavhaus.net.lua + rm public_html/*.html + pandoc lua pandoc/bavbavhaus.net.lua -wiki: - test -d "wiki" || mkdir "wiki" +public_html: + test -d "public_html" || mkdir "public_html" + mkdir "public_html/partial" -wiki/%.mdwn: notes/%.md\ - pandoc/defaults/ikiwiki.yaml\ - pandoc/templates/ikiwiki.markdown\ - pandoc/csl/chicago-fullnote-sl.csl\ - pandoc/filters/pandoc-quotes.lua - pandoc --data-dir=pandoc --id-prefix=$* -dikiwiki -o $@ $< +public_html/%.html: %.md\ + pandoc/defaults/bavbavhaus.net.yaml\ + pandoc/templates/bavbavhaus.net.html\ + pandoc/csl/chicago-fullnote-sl.csl\ + pandoc/filters/pandoc-quotes.lua + pandoc --data-dir=pandoc --id-prefix=$* -dbavbavhaus.net.yaml -o $@ $< + +public_html/partial/%.html: %.md\ + pandoc/defaults/bavbavhaus.net.partial.yaml\ + pandoc/templates/bavbavhaus.net.partial.html\ + pandoc/csl/chicago-fullnote-sl.csl\ + pandoc/filters/pandoc-quotes.lua + pandoc --data-dir=pandoc --id-prefix=$* -dbavbavhaus.net.partial.yaml -o $@ $< .PHONY: refresh refresh: