diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/macros.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/macros.mk b/mk/macros.mk index 0a5cbe3..e7f94e1 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 = $(shell test -e $(1) && echo y) +__embtk_mk_pathexist = $(if $(wildcard $(1)),y) # # __embtk_mk_pathnotexist @@ -65,7 +65,7 @@ __embtk_mk_pathexist = $(shell test -e $(1) && echo y) # exist and nothing if it exists. # Usage: $(call __embtk_mk_pathnotexist,/path/to/test) # -__embtk_mk_pathnotexist = $(shell test -e $(1) || echo y) +__embtk_mk_pathnotexist = $(if $(wildcard $(1)),,y) # Macro to print messages embtk_pwarning = $(call embtk_echo_yellow,"$(__embtk_msg_h)\\n~~ EmbToolkit ~~ WARNING: $(1)\\n$(__embtk_msg_h)") |