2024-01-12 15:08:12 +01:00
|
|
|
SHELL = /bin/sh
|
2024-01-15 07:07:32 +01:00
|
|
|
FLAGS = \
|
|
|
|
--data-dir=pandoc\
|
|
|
|
--resource-path=.:pandoc
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-01-15 07:07:32 +01:00
|
|
|
.PHONY: wiki
|
|
|
|
wiki: wiki/*
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-01-15 07:07:32 +01:00
|
|
|
# wiki
|
|
|
|
wiki/%.mdwn: notes/%.md notes/default.mdwn.yaml | refresh
|
|
|
|
pandoc $(FLAGS) --id-prefix=$* -d notes/default.mdwn.yaml -o $@ $<
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-01-15 07:07:32 +01:00
|
|
|
# dest
|
|
|
|
dest/%.docx: notes/%.md notes/default.docx.yaml
|
|
|
|
pandoc $(FLAGS) -d notes/default.docx.yaml -o $@ $<
|
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
|