bavbavhaus.net/makefile

82 lines
1.9 KiB
Makefile

SHELL = /bin/sh
# ikiwiki
.PHONY: all
all: *.md\
public_html/css/*\
pandoc/templates/bavbavhaus.net.html5\
pandoc/templates/bavbavhaus.net.partial.html5\
pandoc/csl/chicago-fullnote-sl.csl\
pandoc/bavbavhaus.net.lua
rm public_html/*.html
pandoc lua pandoc/bavbavhaus.net.lua
public_html:
test -d "public_html" || mkdir "public_html"
mkdir "public_html/partial"
public_html/%.html: %.md\
pandoc/defaults/bavbavhaus.net.yaml\
pandoc/templates/bavbavhaus.net.html\
pandoc/csl/chicago-fullnote-sl.csl\
pandoc/filters/pandoc-quotes.lua
pandoc --data-dir=pandoc --id-prefix=$* -dbavbavhaus.net.yaml -o $@ $<
public_html/partial/%.html: %.md\
pandoc/defaults/bavbavhaus.net.partial.yaml\
pandoc/templates/bavbavhaus.net.partial.html\
pandoc/csl/chicago-fullnote-sl.csl\
pandoc/filters/pandoc-quotes.lua
pandoc --data-dir=pandoc --id-prefix=$* -dbavbavhaus.net.partial.yaml -o $@ $<
.PHONY: refresh
refresh:
ikiwiki --setup $(IKIWIKISETUPFILE) --refresh
.PHONY: rebuild
rebuild:
ikiwiki --setup $(IKIWIKISETUPFILE) --rebuild
.PHONY: clean
clean:
rm wiki/*
ikiwiki --setup $(IKIWIKISETUPFILE) --clean
# dest
dest:
test -d "dest" || mkdir "dest"
# docx
dest/%.docx: notes/%.md\
pandoc/defaults/docx.yaml\
pandoc/reference-sl.docx\
pandoc/csl/chicago-fullnote-sl.csl\
pandoc/filters/pandoc-quotes.lua\
pandoc/filters/delink.lua\
| dest
pandoc --data-dir=pandoc -ddocx -o $@ $<
# pdf
dest/%.pdf: notes/%.md\
pandoc/defaults/pdf.yaml\
pandoc/csl/chicago-fullnote-sl.csl\
| dest
pandoc --data-dir=pandoc -dpdf -o $@ $<
# presentation
dest/%.s5.html: notes/%.md\
pandoc/defaults/s5.yaml\
pandoc/templates/default.s5\
pandoc/s5/default/pretty.css\
pandoc/s5/default/framing.css\
pandoc/csl/chicago-fullnote-sl.csl\
pandoc/filters/pandoc-quotes.lua\
| dest
pandoc --data-dir=pandoc -ds5 -o $@ $<
.PHONY: distclean
distclean:
rm -rf "wiki"
rm -rf "dest