From c93ad4a81d0c7daab9fab3d19d56b130129b65d3 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 21 Oct 2014 15:19:15 +0200 Subject: Makefile: add templates as dependency of pages --- Makefile | 7 ++++--- 1 file 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 -- cgit v1.2.3-70-g09d2