summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-18 19:08:42 +0100
committerJoe Carstairs <me@joeac.net>2026-06-18 19:08:42 +0100
commitef681069c7bc0d850381c9b2b00de6a48cc1c0e7 (patch)
tree84ee96044bd3f477287da7b233d399cccfb6ccb0 /http
parent5797bc85bf309744dc6b51744a61ddfc1c95ec53 (diff)
adds component_files to blog_post_rule, and adds component_files
variable
Diffstat (limited to 'http')
-rw-r--r--http/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/http/Makefile b/http/Makefile
index 1f725f0..5004c55 100644
--- a/http/Makefile
+++ b/http/Makefile
@@ -10,6 +10,7 @@ src_files += $(filter-out %.args,$(wildcard src/**/*.upp*))
src_files_ext := $(suffix $(src_files))
out_deps_ext := $(src_files_ext:.upp%=%)
+component_files := $(shell find -L share/components -type f)
layout_files := $(wildcard share/layouts/*.layout.upp*)
layouts := $(notdir $(basename $(basename $(layout_files))))
@@ -52,7 +53,7 @@ $(blog): $(blog_src)
endef
define blog_post_rule =
-$(blog_post_target): $(blog_post_src) $(let ext,html,$(layout_file))
+$(blog_post_target): $(blog_post_src) $(let ext,html,$(layout_file) $(component_files))
./bin/blog \
-i $(blog) \
$(if $(BLOG_LAYOUT_$(blog)),-l $(BLOG_LAYOUT_$(blog))) \