bavbavhaus.net/makefile

28 lines
534 B
Makefile

SHELL = /bin/sh
FLAGS = \
--data-dir=pandoc\
--resource-path=.:pandoc
.PHONY: wiki
wiki: wiki/*
# wiki
wiki/%.mdwn: notes/%.md notes/default.mdwn.yaml | refresh
pandoc $(FLAGS) --id-prefix=$* -d notes/default.mdwn.yaml -o $@ $<
# dest
dest/%.docx: notes/%.md notes/default.docx.yaml
pandoc $(FLAGS) -d notes/default.docx.yaml -o $@ $<
.PHONY: refresh
refresh:
ikiwiki --setup laptop.setup --refresh
.PHONY: rebuild
rebuild:
ikiwiki --setup laptop.setup --rebuild
.PHONY: clean
clean:
ikiwiki --setup laptop.setup --clean