summaryrefslogtreecommitdiff
path: root/Makefile
blob: de1cfa91345b66988be31cf102da363e000ecae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: public/ $(addsuffix .md,$(articles)) index.rb Makefile
	./index.rb $(filter-out public/ index.rb Makefile $@,$^) > $@
	touch public/
	touch $@
clean:
	rm -f -- public/*.html public/index.md