2024-01-12 15:08:12 +01:00
|
|
|
SHELL = /bin/sh
|
2024-02-05 17:45:48 +01:00
|
|
|
FLAGS = --data-dir=pandoc\
|
2024-01-15 07:07:32 +01:00
|
|
|
--resource-path=.:pandoc
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-02-05 17:45:48 +01:00
|
|
|
.PHONY: all
|
|
|
|
all: dest/* wiki/* refresh
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-01-15 07:07:32 +01:00
|
|
|
# wiki
|
2024-02-05 17:45:48 +01:00
|
|
|
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
|
2024-01-15 07:07:32 +01:00
|
|
|
pandoc $(FLAGS) --id-prefix=$* -d notes/default.mdwn.yaml -o $@ $<
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-02-05 17:45:48 +01:00
|
|
|
wiki:
|
|
|
|
mkdir wiki
|
|
|
|
|
2024-01-15 07:07:32 +01:00
|
|
|
# dest
|
2024-02-05 17:45:48 +01:00
|
|
|
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
|
2024-01-15 07:07:32 +01:00
|
|
|
pandoc $(FLAGS) -d notes/default.docx.yaml -o $@ $<
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-02-05 17:45:48 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2024-01-12 15:08:12 +01:00
|
|
|
.PHONY: refresh
|
|
|
|
refresh:
|
|
|
|
ikiwiki --setup laptop.setup --refresh
|
|
|
|
|
2024-01-15 07:07:32 +01:00
|
|
|
.PHONY: rebuild
|
|
|
|
rebuild:
|
|
|
|
ikiwiki --setup laptop.setup --rebuild
|
|
|
|
|
2024-01-12 15:08:12 +01:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
ikiwiki --setup laptop.setup --clean
|