summary refs log tree commit diff
path: root/Makefile
blob: 33a705bbc0fcdd70de96459873fa21e070ed04ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.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 \
# 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 $@