update `Makefile`

master
urosm 2024-02-05 17:45:48 +01:00
parent ed66c673d7
commit cfe6f7248c
1 changed files with 32 additions and 6 deletions

View File

@ -1,19 +1,45 @@
SHELL = /bin/sh SHELL = /bin/sh
FLAGS = \ FLAGS = --data-dir=pandoc\
--data-dir=pandoc\
--resource-path=.:pandoc --resource-path=.:pandoc
.PHONY: wiki .PHONY: all
wiki: wiki/* all: dest/* wiki/* refresh
# wiki # 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 $@ $< pandoc $(FLAGS) --id-prefix=$* -d notes/default.mdwn.yaml -o $@ $<
wiki:
mkdir wiki
# dest # 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 $@ $< 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 .PHONY: refresh
refresh: refresh:
ikiwiki --setup laptop.setup --refresh ikiwiki --setup laptop.setup --refresh