diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-01-23 22:23:41 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-01-23 22:25:35 +0100 |
commit | dd6ee055561aa48efb8869f9fa88ed289e1ef7d5 (patch) | |
tree | dce6eef4277829e5e6738d8c6192a88971d0773f /mk | |
parent | 135a89d0d2a0ef302b1199157f92b5c39fde1008 (diff) | |
download | embtoolkit-dd6ee055561aa48efb8869f9fa88ed289e1ef7d5.tar.gz embtoolkit-dd6ee055561aa48efb8869f9fa88ed289e1ef7d5.tar.bz2 embtoolkit-dd6ee055561aa48efb8869f9fa88ed289e1ef7d5.tar.xz |
Revert "Build system: internal macros: use make functions for __embtk_mk_path{not}exist"
This reverts commit 135a89d0d2a0ef302b1199157f92b5c39fde1008.
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
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 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)") |