From cfe6f7248c4159118692ecdf9d7778012c813278 Mon Sep 17 00:00:00 2001 From: urosm Date: Mon, 5 Feb 2024 17:45:48 +0100 Subject: [PATCH] update `Makefile` --- makefile | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) 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