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