summaryrefslogtreecommitdiff
path: root/Makefile
blob: a986f6c59874a838d450ce71380d7f9d81c99b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: _build/index.html

_build:
	mkdir -p $@
	find app devel doc/ lang system -mindepth 4 -type f | grep '/src/' | parallel 'tools/highlight.py {}'

_build/packages.rst: | _build
	tools/makeindex.py > $@

_build/index.html: README.rst _build/packages.rst
	rst2html5.py --cloak-email-addresses --math-output=mathjax \
		--syntax-highlight=short --link-stylesheet \
		--stylesheet=../../style.min.css \
		--template=./template.txt \
		--footnote-references=superscript < README.rst > $@

.PHONY: clean _build/packages.rst

clean:
	$(RM) -r _build