make_module uses Makefile, not install.mk

This commit is contained in:
2026-07-02 22:23:55 +01:00
parent c89f338601
commit 3d87e928d4
+3 -2
View File
@@ -1,12 +1,13 @@
include make/vars.mk
submake_file = $(shell [ -f "$(module)/Makefile" ] && echo "$(module)/Makefile")
install_submake_file = $(shell [ -f "$(module)/install.mk" ] && echo "$(module)/install.mk")
define make_module_rule =
.PHONY: make_$(module)
make_$(module): $(module)/.env
$(if $(install_submake_file),\
$(MAKE) --makefile=$(install_submake_file) --directory=$(module))
$(if $(submake_file),\
$(MAKE) --makefile=$(notdir $(submake_file)) --directory=$(module))
endef
define module_env_rule =