diff options
author | metamuffin <metamuffin@disroot.org> | 2022-08-29 16:47:07 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-08-29 16:47:07 +0200 |
commit | ddc681c7793a990a67ae61ec183bb1a1138ea3ef (patch) | |
tree | 596f5b93ef5644023f1108d029d676cb77d44f4f /tools/makefile | |
parent | 18f53568b43380665686dc9e7785790f9921ce8f (diff) | |
download | metamuffin-blog-ddc681c7793a990a67ae61ec183bb1a1138ea3ef.tar metamuffin-blog-ddc681c7793a990a67ae61ec183bb1a1138ea3ef.tar.bz2 metamuffin-blog-ddc681c7793a990a67ae61ec183bb1a1138ea3ef.tar.zst |
more code
Diffstat (limited to 'tools/makefile')
-rw-r--r-- | tools/makefile | 5 |
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 |