update `Makefile`
parent
91e2fd50af
commit
dc59720d7f
32
makefile
32
makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue