blob: cfb1423d6783c0c92df9351488259dd6bd5b6cdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
MDPOSTS := $(wildcard *.md **/*.md)
MDHTML := $(MDPOSTS:.md=.html)
POSTS := $(filter-out $$template.html %.rendered.html $(MDHTML),$(wildcard *.html **/*.html))
POSTS += $(MDHTML)
RENDERED := $(POSTS:.html=.rendered.html)
.PHONY: all clean
all: $(RENDERED)
clean:
rm -f $(RENDERED) $(MDHTML)
$(MDHTML): %.html: %.md
cmark-gfm --unsafe <'$<' >'$@'
$(RENDERED): %.rendered.html: %.html $$template.html .tools/render.sh
.tools/render.sh '$<'
|