From 543a86d44192de3cf0366b1f4fa8b77d82630358 Mon Sep 17 00:00:00 2001 From: urosm Date: Sat, 4 May 2024 19:25:10 +0200 Subject: [PATCH] update `Makefile` --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 632ddad..2ae6f3d 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,12 @@ getparts = $(patsubst %.md,public_html/%.html.part,$(1)) .PHONY: all all: public_html/index.html $(call getpages,$(call getlinks,--follow index.md)) -.SECONDEXPANSION: -public_html/%.html: public_html/%.html.part $$(call getparts,$$(call getlinks,%.md)) - pandoc --data-dir pandoc -d bavbavhaus.net.yaml -M bodypart=$< $(patsubst %,-M linkparts=%,$(filter-out $<,$^)) -o $@ $*.md +public_html/index.html: public_html/index.html.part $(call getparts,$(call getlinks,index.md)) + +.SECONDEXPANSION: +public_html/%.html: public_html/%.html.part $$(call getparts,$$(call getlinks,%.md)) public_html/index.html.part + pandoc --data-dir pandoc -d bavbavhaus.net.yaml -M slug=$* -M bodypart=$< $(patsubst %,-M linkparts=%,$(filter-out $<,$^)) -o $@ $*.md -.SECONDARY: public_html/%.html.part: %.md pandoc --data-dir pandoc -d bavbavhaus.net.part.yaml -M url=$*.html --id-prefix $* -o $@ $<