summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2017-01-21 11:24:56 +0100
committerLars-Dominik Braun <lars@6xq.net>2017-01-28 14:31:28 +0100
commita6d474471dddc2d7a187a66358aafcb86235ca69 (patch)
tree7242cbf0f0e645b2156e143dbebaa2d28b4fcdba /Makefile
parentc7befe173ed2b0f5fd82228fa45c7a105ac44818 (diff)
downloadeumel-a6d474471dddc2d7a187a66358aafcb86235ca69.tar.gz
eumel-a6d474471dddc2d7a187a66358aafcb86235ca69.tar.bz2
eumel-a6d474471dddc2d7a187a66358aafcb86235ca69.zip
Restructure git
Move tools into separate repo, split TTL file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b25c021
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+BUILDDIR=_build
+STATICFILES=01_readme_INSTALL.txt releases.svg eumel_logo.svg
+
+all: $(BUILDDIR)/index.html links
+
+$(BUILDDIR):
+ mkdir -p $(BUILDDIR)
+
+$(BUILDDIR)/index.ttl: $(glob ttl/*.ttl) | $(BUILDDIR)
+ cat ttl/* > $@
+
+$(BUILDDIR)/bib.rst: $(BUILDDIR)/index.ttl tools/formatRefs.py | $(BUILDDIR)
+ cat $(BUILDDIR)/index.ttl | ./tools/formatRefs.py https://6xq.net/eumel/ | sort -n > $(BUILDDIR)/bib.rst
+
+$(BUILDDIR)/software.html: $(BUILDDIR)/index.ttl tools/formatSoftware.py
+ cat $(BUILDDIR)/index.ttl | ./tools/formatSoftware.py > $@
+
+$(BUILDDIR)/index.html: $(BUILDDIR)/software.html $(BUILDDIR)/bib.rst history.rst artifacts.rst popularity.rst hardware.rst internals.rst index.rst software.rst about.rst trivia.rst quickstart.rst overview.rst
+ rst2html5.py --cloak-email-addresses --math-output=mathjax \
+ --syntax-highlight=short --link-stylesheet \
+ --stylesheet=../style.min.css \
+ --template=./template.txt \
+ --footnote-references=superscript < index.rst > $@
+
+links: $(STATICFILES) | $(BUILDDIR)
+ ln -f $(STATICFILES) $(BUILDDIR)
+
+.PHONY: clean
+
+clean:
+ $(RM) -r $(BUILDDIR)
+