summaryrefslogtreecommitdiff
path: root/repo/www/Makefile
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-03-25 18:48:12 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-03-25 21:13:44 +0100
commit1b7eebb3563dab36584247bcab1d8e3b4e78833b (patch)
treedfff7b3bf09b749795cf7d451c2a1fa8a4f60334 /repo/www/Makefile
parent355b77c1fff8132cd3445c375140cf51e736d8a0 (diff)
downloadmemory-leaks-1b7eebb3563dab36584247bcab1d8e3b4e78833b.tar.xz
Split index generation and HTML conversion
So that I can re-use generate-index.py for READMEs.
Diffstat (limited to 'repo/www/Makefile')
-rw-r--r--repo/www/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile
index fc25ddb..7ba566c 100644
--- a/repo/www/Makefile
+++ b/repo/www/Makefile
@@ -15,7 +15,7 @@ all: site
dependencies = deps.mk
include $(dependencies)
-$(dependencies): make-deps.py $(text_folders)
+$(dependencies): generate-deps.py $(text_folders)
python3 $< "$(TEXT_FILES)" $(OUT_DIR)
site: $(pages) $(indices) $(autoindices)
@@ -28,8 +28,10 @@ $(pages) $(indices):
# ⚠ When tweaking this rule, check whether it still works for the
# top-level index.html, i.e. when there is no top-level README.
-$(autoindices): $(OUT_DIR)%/index.html: $(TOP_DIR)% make-index.py | $(OUT_DIR)%
- python3 make-index.py "$(TEXT_FILES)" "$(*:/%=%)" > $@
+$(autoindices): \
+$(OUT_DIR)%/index.html: $(TOP_DIR)% generate-index.py | $(OUT_DIR)%
+ python3 generate-index.py "$(TEXT_FILES)" "$(*:/%=%)" | \
+ pandoc -s > $@
clean:
-rm $(dependencies)