summaryrefslogtreecommitdiff
path: root/repo/www/Makefile
diff options
context:
space:
mode:
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)