aboutsummaryrefslogtreecommitdiff
path: root/code/makefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-08-29 23:07:47 +0200
committermetamuffin <metamuffin@disroot.org>2022-08-29 23:07:47 +0200
commit3830096c748bd26c8c2aeb906e8e63960f240567 (patch)
tree85438ccb821e8c96a2967a32242bd0d9d9607f7f /code/makefile
parent3eb1adfeb8dd477479404a1269c8682e3b4edf12 (diff)
downloadmetamuffin-blog-3830096c748bd26c8c2aeb906e8e63960f240567.tar
metamuffin-blog-3830096c748bd26c8c2aeb906e8e63960f240567.tar.bz2
metamuffin-blog-3830096c748bd26c8c2aeb906e8e63960f240567.tar.zst
improve atom
Diffstat (limited to 'code/makefile')
-rw-r--r--code/makefile12
1 files changed, 6 insertions, 6 deletions
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'