diff options
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 |