diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-18 22:30:19 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-18 22:30:19 +0200 |
| commit | b5205f3253e745083f55f40f4a5e64cb2da39aac (patch) | |
| tree | c754b027780304bccfe114789839b312b96b8952 /repo/www/Makefile | |
| parent | 205b6d12ff5673bd8ae59f827f07b69771b9dfee (diff) | |
| download | memory-leaks-b5205f3253e745083f55f40f4a5e64cb2da39aac.tar.xz | |
Pass filters to generation scripts explicitly
Diffstat (limited to 'repo/www/Makefile')
| -rw-r--r-- | repo/www/Makefile | 3 |
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: |
