diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-17 18:27:13 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-17 18:27:13 +0100 |
| commit | 574b2d6646ec56371f57f80e98f54660df3231a6 (patch) | |
| tree | 182f4ddc72dce985b48cbb7119568f25a5b2bda2 /http/Makefile | |
| parent | b0adbd44190b4271e2a4417da986c57de5408894 (diff) | |
Makefile: named params in out_rule macro
Diffstat (limited to 'http/Makefile')
| -rw-r--r-- | http/Makefile | 6 |
1 files 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))) |
