update `Makefile`
parent
abde069d29
commit
543a86d441
9
Makefile
9
Makefile
|
@ -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 $@ $<
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue