summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-21 15:19:15 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-21 15:19:15 +0200
commitc93ad4a81d0c7daab9fab3d19d56b130129b65d3 (patch)
treea90f656bd04de7ede5030138d0275b9d7f2e2d83 /Makefile
parent60c4449e6f0e98f76e1d428efb7f3f14c492fed5 (diff)
downloadwebsite-c93ad4a81d0c7daab9fab3d19d56b130129b65d3.tar.xz
Makefile: add templates as dependency of pages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 01ed0e3..81b2bcd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
HTML := index.html journal.html about.html
CSS := style.css journal/isso.css
RESOURCES := glider.png
+TEMPLATES := $(shell find src/templates)
FILES := $(HTML) $(CSS) sitemap.xml pgp-key.txt \
$(addprefix resources/, $(RESOURCES))
@@ -13,15 +14,15 @@ build/%/:
clean:
-rm -r $(addprefix build/, $(FILES)) build/journal.xml build/journal build/resources
-build/index.html: src/index.rst
+build/index.html: src/index.rst $(TEMPLATES)
@./scripts/bupa index.html
@echo Built index.html
-build/about.html: src/about.rst
+build/about.html: src/about.rst $(TEMPLATES)
@./scripts/bupa about.html
@echo Built about.html
-build/journal.html: $(shell find src/journal)
+build/journal.html: $(shell find src/journal) $(TEMPLATES)
@./scripts/bupa journal.html
@echo Built journal