blob: 5265ecde38e99144e402de59ef7500e5113b9aa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
out := _out
md_sources := $(wildcard *.md) $(wildcard [a-z]*/*.md)
pages := $(patsubst %.md,$(out)/%.html, $(md_sources))
static_sources := $(shell find _static -type f)
static_out := $(patsubst _static/%,$(out)/%,$(static_sources))
all: $(pages) $(static_out)
$(out)/%.html: %.md _layout.template.html
mkdir -p $(dir $@)
lua _scripts/generate_page.lua $< > $@
$(static_out): $(out)/%: _static/%
mkdir -p $(dir $@)
cp $< $@
clean:
rm -f $(pages) $(static_out)
|