summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-17 18:35:39 +0100
committerJoe Carstairs <me@joeac.net>2026-06-17 18:35:39 +0100
commit506d1adfccbb494be598e08f8d45aaae641eb6d2 (patch)
tree1d959a36e1e9129b96ed31e640e084da31b6f2f7
parente506f7c2e6fc7a2a15b33ccb62363db4f8d4f02e (diff)
fix bug in Makefile out_rule
-rw-r--r--http/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/Makefile b/http/Makefile
index 2818de2..05469d6 100644
--- a/http/Makefile
+++ b/http/Makefile
@@ -33,7 +33,7 @@ blog_src = $(patsubst \
$(shell find -L "blogs/$(blog)" -type f -and -name *.$(BLOG_EXT_$(blog))))
define out_rule =
-out/%.$(ext): src/%$(layout).upp$(ext)
+out/%.$(ext): src/%$(if $(layout),.$(layout)).upp$(ext)
./bin/mkws https://joeac.net "$$$$(realpath $$<)"
endef