From ddc681c7793a990a67ae61ec183bb1a1138ea3ef Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 29 Aug 2022 16:47:07 +0200 Subject: more code --- tools/makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/makefile') diff --git a/tools/makefile b/tools/makefile index 15b8a45..5e8d26d 100644 --- a/tools/makefile +++ b/tools/makefile @@ -4,7 +4,10 @@ TOOL := ../tools/target/debug/blog-tool SRC_ARTICLES := $(shell find articles -type f) OUT_ARTICLES := $(SRC_ARTICLES:articles/%.md=out/%.html) -all: $(OUT_ARTICLES) +all: $(OUT_ARTICLES) out/index.html + +out/index.html: $(TOOL) $(SRC_ARTICLES) + $(TOOL) render-index ./articles > $@ out/%.html: articles/%.md $(TOOL) mkdir -p out -- cgit v1.2.3-70-g09d2