update `makefile`

urosm 2024-02-05 17:45:48 +01:00
parent 8bfe679b29
commit 47cfbe883f
1 changed files with 32 additions and 6 deletions

View File

@ -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