From 574b2d6646ec56371f57f80e98f54660df3231a6 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 17 Jun 2026 18:27:13 +0100 Subject: [PATCH] Makefile: named params in out_rule macro --- http/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http/Makefile b/http/Makefile index 018e95e..f343c00 100644 --- a/http/Makefile +++ b/http/Makefile @@ -12,7 +12,7 @@ $(foreach layout,$(layouts),$(eval $(call remove_layout_from_out_deps,.$(layout) $(eval $(call remove_layout_from_out_deps,)) define out_rule = -out/%.$(1): src/%$(2).upp$(1) +out/%.$(ext): src/%$(layout).upp$(ext) ./bin/mkws https://joeac.net "$$$$(realpath $$<)" endef @@ -51,10 +51,10 @@ all: $(blogs) public out out: $(out_deps) $(foreach ext,$(sort $(out_deps_ext)),\ - $(eval $(call out_rule,$(ext),))) + $(eval $(out_rule))) $(foreach layout,$(layouts),\ $(foreach ext,$(sort $(out_deps_ext)),\ - $(eval $(call out_rule,$(ext),.$(layout))))) + $(eval $(out_rule)))) $(foreach blog,$(blogs),$(eval $(blog_rule)))