summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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