blob: 72c02249e0a7a1b27c2717c4341a2ed773715582 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
BUILDDIR:=_build
STATICFILES:=01_readme_INSTALL.txt releases.svg eumel_logo.svg eumel_logo_2.svg
TTLFILES:=$(shell find ttl -name '*.ttl' | sort)
all: $(BUILDDIR)/index.html links
$(BUILDDIR):
mkdir -p $(BUILDDIR)
$(BUILDDIR)/index.ttl: $(TTLFILES) | $(BUILDDIR)
cat $(TTLFILES) > $@
$(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 links
clean:
$(RM) -r $(BUILDDIR)
|