From dc59720d7f1305ce4e8f881c2d008dd0f3e39b35 Mon Sep 17 00:00:00 2001 From: urosm Date: Sun, 17 Mar 2024 17:12:26 +0100 Subject: [PATCH] update `Makefile` --- makefile | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/makefile b/makefile index 6d70668..3008393 100644 --- a/makefile +++ b/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\ - pandoc/csl/chicago-fullnote-sl.csl\ - pandoc/filters/pandoc-quotes.lua - pandoc --data-dir=pandoc --id-prefix=$* -dikiwiki -o $@ $< +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: