make_module uses Makefile, not install.mk
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
include make/vars.mk
|
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")
|
install_submake_file = $(shell [ -f "$(module)/install.mk" ] && echo "$(module)/install.mk")
|
||||||
|
|
||||||
define make_module_rule =
|
define make_module_rule =
|
||||||
.PHONY: make_$(module)
|
.PHONY: make_$(module)
|
||||||
make_$(module): $(module)/.env
|
make_$(module): $(module)/.env
|
||||||
$(if $(install_submake_file),\
|
$(if $(submake_file),\
|
||||||
$(MAKE) --makefile=$(install_submake_file) --directory=$(module))
|
$(MAKE) --makefile=$(notdir $(submake_file)) --directory=$(module))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define module_env_rule =
|
define module_env_rule =
|
||||||
|
|||||||
Reference in New Issue
Block a user