aboutsummaryrefslogtreecommitdiff
path: root/tools/makefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-08-29 16:47:07 +0200
committermetamuffin <metamuffin@disroot.org>2022-08-29 16:47:07 +0200
commitddc681c7793a990a67ae61ec183bb1a1138ea3ef (patch)
tree596f5b93ef5644023f1108d029d676cb77d44f4f /tools/makefile
parent18f53568b43380665686dc9e7785790f9921ce8f (diff)
downloadmetamuffin-blog-ddc681c7793a990a67ae61ec183bb1a1138ea3ef.tar
metamuffin-blog-ddc681c7793a990a67ae61ec183bb1a1138ea3ef.tar.bz2
metamuffin-blog-ddc681c7793a990a67ae61ec183bb1a1138ea3ef.tar.zst
more code
Diffstat (limited to 'tools/makefile')
-rw-r--r--tools/makefile5
1 files changed, 4 insertions, 1 deletions
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