update `Makefile`

master
urosm 2024-05-04 19:25:10 +02:00
parent abde069d29
commit 543a86d441
1 changed files with 5 additions and 4 deletions

View File

@ -10,11 +10,12 @@ getparts = $(patsubst %.md,public_html/%.html.part,$(1))
.PHONY: all .PHONY: all
all: public_html/index.html $(call getpages,$(call getlinks,--follow index.md)) all: public_html/index.html $(call getpages,$(call getlinks,--follow index.md))
.SECONDEXPANSION: public_html/index.html: public_html/index.html.part $(call getparts,$(call getlinks,index.md))
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 .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 public_html/%.html.part: %.md
pandoc --data-dir pandoc -d bavbavhaus.net.part.yaml -M url=$*.html --id-prefix $* -o $@ $< pandoc --data-dir pandoc -d bavbavhaus.net.part.yaml -M url=$*.html --id-prefix $* -o $@ $<