diff --git a/makefile b/makefile index 4777fb0..7caec09 100644 --- a/makefile +++ b/makefile @@ -1,19 +1,45 @@ SHELL = /bin/sh -FLAGS = \ - --data-dir=pandoc\ +FLAGS = --data-dir=pandoc\ --resource-path=.:pandoc -.PHONY: wiki -wiki: wiki/* +.PHONY: all +all: dest/* wiki/* refresh # wiki -wiki/%.mdwn: notes/%.md notes/default.mdwn.yaml | refresh +wiki/%.mdwn: notes/%.md\ + notes/default.mdwn.yaml\ + pandoc/templates/ikiwiki.markdown\ + pandoc/csl/chicago-fullnote-sl.csl\ + pandoc/filters/pandoc-quotes.lua\ + IkiWiki/Plugin/*\ + css/*\ + tmpl/*\ + | wiki pandoc $(FLAGS) --id-prefix=$* -d notes/default.mdwn.yaml -o $@ $< +wiki: + mkdir wiki + # dest -dest/%.docx: notes/%.md notes/default.docx.yaml +dest/%.docx: notes/%.md\ + notes/default.docx.yaml\ + pandoc/reference-sl.docx\ + pandoc/csl/chicago-fullnote-sl.csl\ + pandoc/filters/pandoc-quotes.lua\ + pandoc/filters/delink.lua\ + | dest pandoc $(FLAGS) -d notes/default.docx.yaml -o $@ $< +dest/%.pdf: notes/%.md\ + notes/default.pdf.yaml\ + pandoc/csl/chicago-fullnote-sl.csl\ + | dest + pandoc $(FLAGS) -d notes/default.pdf.yaml -o $@ $< + +dest: + mkdir dest + + .PHONY: refresh refresh: ikiwiki --setup laptop.setup --refresh