TOOL := ../tools/target/debug/blog-tool SRC_ARTICLES := $(shell find articles -type f) OUT_ARTICLES := $(SRC_ARTICLES:articles/%.md=out/%.html) all: $(OUT_ARTICLES) out/%.html: articles/%.md $(TOOL) mkdir -p out $(TOOL) render-article $< > $@ $(TOOL): $(shell find ../tools/src -type f) sh -c 'cd ../tools; cargo build'