blob: c57379058a1f185942e119e6d4cd081e171cbddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
articles = $(filter-out public/index,$(patsubst %.md,%,$(wildcard public/*.md)))
.DELETE_ON_ERROR:
.SECONDARY:
all: public/index.html $(addsuffix .html,$(articles))
public/%.html: public/%.md pagerender.rb template.erb Makefile
./pagerender.rb $< > $@
public/index.md: $(addsuffix .md,$(articles)) index.rb Makefile
./index.rb $(filter-out Makefile index.rb public/index.md,$^) > $@
clean:
rm -f -- public/*.html public/index.md
|