update `Makefile`

master
urosm 2024-04-12 23:20:40 +02:00
parent 5aeb6d6749
commit cba1b32d2c
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ all: $(call getpages,$(notes))
hidden: notes := $(wildcard $(shell ls -t .*.md *.md))
hidden: all
public_html/%.html: %.md sitemap.json links.json
public_html/%.html: %.md sitemap.json links.json pandoc/templates/bavbavhaus.net.html5
$(eval deps := $(shell jq -r '.["$<"] | unique | join(" ")' links.json))
$(if $(deps), $(MAKE) $(call getparts,$(deps)))
pandoc \
@ -35,7 +35,7 @@ public_html/%.html: %.md sitemap.json links.json
# preserve `partials/%.html` intermediate files
.PRECIOUS: partials/%.html
partials/%.html: %.md | partials
partials/%.html: %.md pandoc/templates/bavbavhaus.net.inline.html5 | partials
pandoc \
--data-dir pandoc \
--defaults bavbavhaus.net.yaml \