summaryrefslogtreecommitdiff
path: root/http/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-18 19:08:17 +0100
committerJoe Carstairs <me@joeac.net>2026-06-18 19:08:17 +0100
commit5797bc85bf309744dc6b51744a61ddfc1c95ec53 (patch)
tree1b59b6e1732820f408471e792bbdc97bf6f3adc5 /http/Makefile
parent4c829133a3abf838aa4f5351c0dbb6335ce9bb2b (diff)
adds blog_rss_feed_rule to http/Makefile
Diffstat (limited to 'http/Makefile')
-rw-r--r--http/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/http/Makefile b/http/Makefile
index a0bfbf7..1f725f0 100644
--- a/http/Makefile
+++ b/http/Makefile
@@ -41,6 +41,11 @@ out/%.$(ext): src/%$(if $(layout),.$(layout)).upp$(ext) $(layout_file) $(compone
./bin/mkws https://joeac.net "$$$$(realpath $$<)"
endef
+define blog_rss_feed_rule =
+out/$(blog)/rss.xml: src/$(blog)/rss.uppxml $(blog_src) $(wildcard bin/*)
+ ./bin/mkws https://joeac.net "$$(realpath src/$(blog)/rss.uppxml)"
+endef
+
define blog_rule =
.PHONY: $(blog)
$(blog): $(blog_src)
@@ -88,6 +93,8 @@ $(foreach blog,$(blogs),\
$(foreach blog,$(blogs),\
$(eval $(call blog_post_rule,$(blog),)))
+$(foreach blog,$(blogs),$(eval $(blog_rss_feed_rule)))
+
.PHONY: public
public: $(subst public/,out/,$(shell find -L public/ -type f))