From 16063402be844c3cda65b8a641ee74cf3932fadf Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 30 Jun 2026 16:41:00 +0100 Subject: [PATCH] post changes update index in http --- http/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/http/Makefile b/http/Makefile index 45dba95..5dbca5b 100644 --- a/http/Makefile +++ b/http/Makefile @@ -51,7 +51,7 @@ endef define blog_rule = .PHONY: $(blog) -$(blog): $(blog_src_without_post_src) $(blog_src) +$(blog): $(blog_src_without_post_src) $(blog_src) out/$(blog).html endef define blog_post_rule = @@ -63,6 +63,11 @@ $(blog_post_target): $(blog_post_src) $(let ext,html,$(layout_file) $(component_ -f $$*.$(BLOG_EXT_$(blog)) endef +define blog_index_rule = +out/$(blog).html: src/$(blog).upphtml $(blog_src) $(wildcard bin/*) + ./bin/mkws https://joeac.net "$$(realpath src/$(blog).upphtml)" +endef + define prune_blog_src_file_rule = $(let rel_basename,$(patsubst src/$(blog)/%.$(BLOG_LAYOUT_$(blog)).upphtml,%,$(file)), blogs/$(blog)/$(rel_basename).$(BLOG_EXT_$(blog)): @@ -113,6 +118,7 @@ $(foreach layout,$(layouts),\ $(eval $(out_rule)))) $(foreach blog,$(blogs),$(eval $(blog_rule))) +$(foreach blog,$(blogs),$(eval $(blog_index_rule))) $(foreach blog,$(blogs),\ $(foreach layout,$(layouts),\