Makefile: set pandoc templates as prerequisite of pages and parts targets

master
urosm 2024-08-13 16:26:19 +02:00
parent 1e7f8a5219
commit 063ab2eebc
1 changed files with 4 additions and 0 deletions

View File

@ -13,9 +13,13 @@ BAVBAVHAUSFLAGS = $(PANDOCFLAGS) -M slug=$*
public_html/%.html: %.md
pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.yaml $< | sed 's/↩︎/[\&#8288;\&lt;\&#8288;-\&#8288;]/g' > $@
$(pages): pandoc/templates/bavbavhaus.net.html5
public_html/%.html.part: %.md
pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.part.yaml --id-prefix $* -o $@ $<
$(parts): pandoc/templates/bavbavhaus.net.part.html5
public_html/%.html.d: %.md
pandoc lua dependencies.lua $< > $@