summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 17 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 72c0224..df92968 100644
--- a/Makefile
+++ b/Makefile
@@ -1,30 +1,40 @@
BUILDDIR:=_build
-STATICFILES:=01_readme_INSTALL.txt releases.svg eumel_logo.svg eumel_logo_2.svg
+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 links
+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 > $(BUILDDIR)/bib.rst
+ 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 > $@
+ 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 > $@
+ --footnote-references=superscript < index.rst > $@ || rm $@
-links: $(STATICFILES) | $(BUILDDIR)
- ln -f $(STATICFILES) $(BUILDDIR)
+links: $(STATICFILES) | $(BUILDDIR)/assets
+ ln -f $(STATICFILES) $(BUILDDIR)/assets
.PHONY: clean links