From 3830096c748bd26c8c2aeb906e8e63960f240567 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 29 Aug 2022 23:07:47 +0200 Subject: improve atom --- code/makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'code/makefile') diff --git a/code/makefile b/code/makefile index fa1464d..df39830 100644 --- a/code/makefile +++ b/code/makefile @@ -1,20 +1,20 @@ TOOL := ../code/target/debug/blog-tool +TOOLC := $(TOOL) --root=articles SRC_ARTICLES := $(shell find articles -type f) OUT_ARTICLES := $(SRC_ARTICLES:articles/%.md=out/%.html) -all: $(OUT_ARTICLES) out/index.html +all: $(OUT_ARTICLES) out/index.html out/feed.atom out/style.css: style.css cp $< $@ - out/index.html: $(TOOL) $(SRC_ARTICLES) - $(TOOL) render-index ./articles > $@ - + $(TOOLC) render-index > $@ +out/feed.atom: $(TOOL) $(SRC_ARTICLES) + $(TOOLC) generate-atom > $@ out/%.html: articles/%.md $(TOOL) out/style.css - mkdir -p out - $(TOOL) render-article $< > $@ + $(TOOLC) render-article $< > $@ $(TOOL): $(shell find ../code/src -type f) sh -c 'cd ../code; cargo build' -- cgit v1.2.3-70-g09d2