Further improve error message clarity
This commit further improves error message clarity.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
diff --git a/Makefile b/Makefile
index 07eb556..6e10cf6 100644
--- a/Makefile
+++ b/Makefile
@@ -6,23 +6,15 @@
ifeq (,$(wildcard framework/exported.make))
# Use the define keyword to get a multi-line message.
# GNU make appends ". Stop.", so tweak the ending of our message accordingly.
- define error_message
-$(MBEDTLS_PATH)/framework/exported.make not found.
-Run `git submodule update --init` to fetch the submodule contents.
-This is a fatal error
- endef
ifeq (,$(wildcard .git))
- define error_message
-$(MBEDTLS_PATH)/.git/ not found.
-Please ensure you have downloaded a release version of Mbed TLS from GitHub.
+ 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.
This is a fatal error
endef
else
define error_message
-$(MBEDTLS_PATH)/framework/exported.make not found.
-Run `git submodule update --init` to fetch the submodule contents.
-This is a fatal error
- endef
+${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
endif
$(error $(error_message))
endif