summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-02-04 13:09:03 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-02-04 13:09:03 +0100
commit04e68443040c7abad84d66477e98f93bed701760 (patch)
tree2b6202afae659e773bf6916157d23e83edfa44e3 /Makefile
downloadeumel-src-04e68443040c7abad84d66477e98f93bed701760.tar.gz
eumel-src-04e68443040c7abad84d66477e98f93bed701760.tar.bz2
eumel-src-04e68443040c7abad84d66477e98f93bed701760.zip
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a986f6c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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
+