summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/macros.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/macros.mk b/mk/macros.mk
index e7f94e1..0a5cbe3 100644
--- a/mk/macros.mk
+++ b/mk/macros.mk
@@ -57,7 +57,7 @@ __embtk_mk_strcmp = $(shell [ $(strip $(1)) = $(strip $(2)) ] && echo y)
# if not.
# Usage: $(call __embtk_mk_pathexist,/path/to/test)
#
-__embtk_mk_pathexist = $(if $(wildcard $(1)),y)
+__embtk_mk_pathexist = $(shell test -e $(1) && echo y)
#
# __embtk_mk_pathnotexist
@@ -65,7 +65,7 @@ __embtk_mk_pathexist = $(if $(wildcard $(1)),y)
# exist and nothing if it exists.
# Usage: $(call __embtk_mk_pathnotexist,/path/to/test)
#
-__embtk_mk_pathnotexist = $(if $(wildcard $(1)),,y)
+__embtk_mk_pathnotexist = $(shell test -e $(1) || echo y)
# Macro to print messages
embtk_pwarning = $(call embtk_echo_yellow,"$(__embtk_msg_h)\\n~~ EmbToolkit ~~ WARNING: $(1)\\n$(__embtk_msg_h)")