summaryrefslogtreecommitdiff
path: root/repo/www/Makefile
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-17 22:28:32 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-18 22:13:03 +0200
commitb173c7328dc8ae69880b305216f1196b052f5e03 (patch)
tree0532948e320e867fd35fd6745b0af983a5c35b6f /repo/www/Makefile
parentf57d38ec6425bdd41aa88a28d24b170c37680fdb (diff)
downloadmemory-leaks-b173c7328dc8ae69880b305216f1196b052f5e03.tar.xz
Pass HTML template to scripts explicitly
Diffstat (limited to 'repo/www/Makefile')
-rw-r--r--repo/www/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile
index 9640fc4..d4392d1 100644
--- a/repo/www/Makefile
+++ b/repo/www/Makefile
@@ -53,7 +53,7 @@ $(pages) $(indices): $(html_template)
$(pages): $(OUT_DIR)/%.html:
$(call v,PAGE,$*) TEXT_FILES="$(TEXT_FILES)" \
./generate-page.py --site-title="$$(cat $(title))" --title="$*" \
- $< $@
+ --template=$(html_template) $< $@
top_index = $(OUT_DIR)/index.html
subindices = $(filter-out $(top_index),$(indices))
@@ -64,8 +64,9 @@ $(subindices): index_options = --site-title="$$(cat $(title))"
# ⚠ When tweaking this rule, check whether it still works for the
# top-level index.html.
$(indices): $(OUT_DIR)/%index.html:
- $(call v,INDEX,$*) TEXT_FILES="$(TEXT_FILES)" \
- ./generate-index.py $(index_options) $(site_tree) "$(patsubst %/,%,$*)" $@
+ $(call v,INDEX,$*) TEXT_FILES="$(TEXT_FILES)" \
+ ./generate-index.py $(index_options) --template=$(html_template) \
+ $(site_tree) "$(patsubst %/,%,$*)" $@
clean:
-rm -r $(cache)