summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-02 09:34:34 +0100
committerJoe Carstairs <me@joeac.net>2026-07-02 09:34:38 +0100
commit2abd95da6d03699f37bb0382b8f6e10f6fb958bf (patch)
tree6c209e246a732666d571f438e86646c510d0b666 /Makefile
parent15a369767983d5f8caaa2a212b45a465e6cedbbd (diff)
has empty make_module rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 320e10a..f1f898c 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,8 @@ install_submake_file = $(shell [ -f "$(module)/install.mk" ] && echo "$(module)/
define make_module_rule =
.PHONY: make_$(module)
make_$(module): $(module)/.env
- $(MAKE) --directory=$(module)
+ $(if $(install_submake_file),\
+ $(MAKE) --makefile=$(install_submake_file) --directory=$(module))
endef
define module_env_rule =
@@ -46,7 +47,7 @@ endef
.PHONY: all
all: $(ENV_RULES) $(MAKE_RULES) $(BUILD_RULES) $(PUSH_RULES)
-$(foreach module,$(MAKE_MODULES),$(eval $(call make_module_rule)))
+$(foreach module,$(MODULES),$(eval $(call make_module_rule)))
$(foreach module,$(MODULES),$(eval $(call module_env_rule)))
.PHONY: install