summary refs log tree commit diff
path: root/Makefile
blob: ff0be70f856a5652f7dced9cd0c70d4bd9be0ac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: all posts index
all: posts index
index: out/index.html out/feed.ass out/feed.atom
posts: \
out/feeds.html \
out/our.html \
out/tui.html \
out/python_recursion.html \
out/m8trix.html \
# posts end

out/index.html: src/index.sh src/feed.ass
	sh $^ > $@

out/feed.ass: src/feed.ass
	cp $< $@

out/feed.atom: src/feed.ass src/atom.sh
	sh src/atom.sh < $< > $@

out/%.html: src/%.md src/tmpl.html
	pandoc --template src/tmpl.html $< -o $@