aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: af28aca7daff16dc04d18ff8ea1e57c6d45a5bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
MD_FILES = $(shell find . -type f -name '*.md')
HTML_FILES = $(patsubst %.md, %.html, $(MD_FILES))

index.html: $(HTML_FILES) index.sh
	sh index.sh $(HTML_FILES) | pandoc --output $@

%.html: %.md
	pandoc $^ --output $@


.PHONY: all clean

all: $(HTML_FILES) index.html

clean:
	rm -rf $(HTML_FILES)
	rm index.html