mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-16 00:40:52 +00:00
Improve makefile error message
This commit improves the makefile error message when using make, it no longer incorrectly reports that CMakeLists.txt cannot be found instead of exported.make. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
parent
d532a663d0
commit
bfd83badc8
10
Makefile
10
Makefile
@ -8,13 +8,13 @@ ifneq (,$(filter-out lib library/%,$(or $(MAKECMDGOALS),all)))
|
||||
# GNU make appends ". Stop.", so tweak the ending of our message accordingly.
|
||||
ifeq (,$(wildcard .git))
|
||||
define error_message
|
||||
${MBEDTLS_FRAMEWORK_DIR}/CMakeLists.txt not found (and does appear to be a git checkout). Run `git submodule update --init` from the source tree to fetch the submodule contents.
|
||||
${MBEDTLS_FRAMEWORK_DIR}/exported.make not found (and does appear to be a git checkout). Run `git submodule update --init` from the source tree to fetch the submodule contents.
|
||||
This is a fatal error
|
||||
endef
|
||||
endef
|
||||
else
|
||||
define error_message
|
||||
${MBEDTLS_FRAMEWORK_DIR}/CMakeLists.txt not found (and does not appear to be a git checkout). Please ensure you have downloaded the right archive from the release page on GitHub.
|
||||
endef
|
||||
define error_message
|
||||
${MBEDTLS_FRAMEWORK_DIR}/exported.make not found (and does not appear to be a git checkout). Please ensure you have downloaded the right archive from the release page on GitHub.
|
||||
endef
|
||||
endif
|
||||
$(error $(error_message))
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user