From 1b7eebb3563dab36584247bcab1d8e3b4e78833b Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 25 Mar 2020 18:48:12 +0100 Subject: Split index generation and HTML conversion So that I can re-use generate-index.py for READMEs. --- repo/www/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'repo/www/Makefile') 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) -- cgit v1.2.3