summaryrefslogtreecommitdiff
path: root/Makefile
blob: f31f41c42234be20961fe9733d1e57b3b2a5b5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
all: _build/index.html

_build: tools/highlight.py
	mkdir -p _build && \
	find . -mindepth 2 -type f  -not -path './.git/*' -not -path './doc/*' -not -path './_build/*' | cut -d / -f 2- | parallel 'tools/highlight.py {}'

_build/index.html: tools/listdir.py | _build
	pushd _build && find . -name '*.html' | cut -d / -f 2- | sort | ../tools/listdir.py src/ > index.html

.PHONY: clean

clean:
	$(RM) -r _build