bavbavhaus.net/makefile

54 lines
1.1 KiB
Makefile

SHELL = /bin/sh
FLAGS = --data-dir=pandoc\
--resource-path=.:pandoc
.PHONY: all
all: dest/* wiki/* refresh
# wiki
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\
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
.PHONY: rebuild
rebuild:
ikiwiki --setup laptop.setup --rebuild
.PHONY: clean
clean:
ikiwiki --setup laptop.setup --clean