summaryrefslogtreecommitdiff
path: root/repo/www/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'repo/www/Makefile')
-rw-r--r--repo/www/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile
index d4392d1..9a804db 100644
--- a/repo/www/Makefile
+++ b/repo/www/Makefile
@@ -14,6 +14,7 @@ text_patterns = $(foreach ext,$(TEXT_FILES),'$(TOP_DIR)/**.$(ext)')
text_folders = $(call dirnames,$(shell git ls-files $(text_patterns)))
top_readme = $(shell git ls-files $(addprefix $(TOP_DIR)/README.,$(TEXT_FILES)))
html_template = template.html
+lua_filters = convert-internal-links.lua
all: site
@@ -53,6 +54,7 @@ $(pages) $(indices): $(html_template)
$(pages): $(OUT_DIR)/%.html:
$(call v,PAGE,$*) TEXT_FILES="$(TEXT_FILES)" \
./generate-page.py --site-title="$$(cat $(title))" --title="$*" \
+ $(foreach f,$(lua_filters),--lua-filter $(f)) \
--template=$(html_template) $< $@
top_index = $(OUT_DIR)/index.html
@@ -66,6 +68,7 @@ $(subindices): index_options = --site-title="$$(cat $(title))"
$(indices): $(OUT_DIR)/%index.html:
$(call v,INDEX,$*) TEXT_FILES="$(TEXT_FILES)" \
./generate-index.py $(index_options) --template=$(html_template) \
+ $(foreach f,$(lua_filters),--lua-filter $(f)) \
$(site_tree) "$(patsubst %/,%,$*)" $@
clean: