update `Makefile`

master
urosm 2024-03-17 17:12:26 +01:00
parent 91e2fd50af
commit dc59720d7f
1 changed files with 24 additions and 12 deletions

View File

@ -1,21 +1,33 @@
SHELL = /bin/sh
IKIWIKISETUPFILE = bavbavhaus.net.local.setup
# ikiwiki
.PHONY: all
all: wiki\
$(patsubst notes/%.md,wiki/%.mdwn,$(wildcard notes/*.md))\
refresh
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
wiki:
test -d "wiki" || mkdir "wiki"
public_html:
test -d "public_html" || mkdir "public_html"
mkdir "public_html/partial"
wiki/%.mdwn: notes/%.md\
pandoc/defaults/ikiwiki.yaml\
pandoc/templates/ikiwiki.markdown\
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=$* -dikiwiki -o $@ $<
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: