summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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