blob: df92968993dd46713a52524f555508b0ba5ea6fe (
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
34
35
36
37
38
39
40
41
42
43
|
BUILDDIR:=_build
STATICFILES:=assets/01_readme_INSTALL.txt \
assets/releases.svg \
assets/eumel_logo.svg \
assets/eumel_logo_2.svg \
assets/eumel-tagung-84.jpg
TTLFILES:=$(shell find ttl -name '*.ttl' | sort)
all: $(BUILDDIR)/index.html $(BUILDDIR)/assets/eumel-tagung-84-resized.jpg links
$(BUILDDIR):
mkdir -p $(BUILDDIR)
$(BUILDDIR)/assets:
mkdir -p $@
$(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 > $@ || rm $@
$(BUILDDIR)/software.html: $(BUILDDIR)/index.ttl tools/formatSoftware.py
cat $(BUILDDIR)/index.ttl | ./tools/formatSoftware.py > $@ || rm $@
$(BUILDDIR)/assets/eumel-tagung-84-resized.jpg: assets/eumel-tagung-84.jpg | $(BUILDDIR)/assets
convert -scale 1000x $< -quality 75 $@ || rm $@
$(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 > $@ || rm $@
links: $(STATICFILES) | $(BUILDDIR)/assets
ln -f $(STATICFILES) $(BUILDDIR)/assets
.PHONY: clean links
clean:
$(RM) -r $(BUILDDIR)
|