summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-01-22 22:49:27 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-01-22 22:49:27 +0100
commit135a89d0d2a0ef302b1199157f92b5c39fde1008 (patch)
treeb3a001c023e1799a4246c5ce6fc777d4f6a77b99 /mk
parente42d70abb0075319eca9f7c1eb5e83463938114e (diff)
downloadembtoolkit-135a89d0d2a0ef302b1199157f92b5c39fde1008.tar.gz
embtoolkit-135a89d0d2a0ef302b1199157f92b5c39fde1008.tar.bz2
embtoolkit-135a89d0d2a0ef302b1199157f92b5c39fde1008.tar.xz
Build system: internal macros: use make functions for __embtk_mk_path{not}exist
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
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 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)")