summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-29 21:51:33 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-29 21:51:33 +0100
commit7439876e7b4ba9598c5e370709e72602e203b2d9 (patch)
tree93dcecffdef8d6ece2b8c3eace781fc39af199f7 /mk
parent8efa332fa609eea0cfe124b827098aff6d2fc9a0 (diff)
downloadembtoolkit-7439876e7b4ba9598c5e370709e72602e203b2d9.tar.gz
embtoolkit-7439876e7b4ba9598c5e370709e72602e203b2d9.tar.bz2
embtoolkit-7439876e7b4ba9598c5e370709e72602e203b2d9.tar.xz
Build system: do use non portable echo -e, instead use printf
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/macros.mk24
1 files changed, 12 insertions, 12 deletions
diff --git a/mk/macros.mk b/mk/macros.mk
index 5691e7e..849ce02 100644
--- a/mk/macros.mk
+++ b/mk/macros.mk
@@ -24,20 +24,20 @@
################################################################################
# Embtoolkit colors
-__embtk_color_red = ""
-__embtk_color_green = ""
-__embtk_color_yellow = ""
-__embtk_color_blue = ""
-__embtk_no_color = ""
+__embtk_color_red = "\033[1;31m"
+__embtk_color_green = "\033[1;32m"
+__embtk_color_yellow = "\033[0;33m"
+__embtk_color_blue = "\033[1;34m"
+__embtk_no_color = "\033[0m"
#
# echo colored text
# usage: $(call embtk_echo_{color},msg)
#
-embtk_echo_red = echo -e $(__embtk_color_red)$(1)$(__embtk_no_color)
-embtk_echo_green = echo -e $(__embtk_color_green)$(1)$(__embtk_no_color)
-embtk_echo_yellow = echo -e $(__embtk_color_yellow)$(1)$(__embtk_no_color)
-embtk_echo_blue = echo -e $(__embtk_color_blue)$(1)$(__embtk_no_color)
+embtk_echo_red = printf $(__embtk_color_red)$(1)$(__embtk_no_color)"\n"
+embtk_echo_green = printf $(__embtk_color_green)$(1)$(__embtk_no_color)"\n"
+embtk_echo_yellow = printf $(__embtk_color_yellow)$(1)$(__embtk_no_color)"\n"
+embtk_echo_blue = printf $(__embtk_color_blue)$(1)$(__embtk_no_color)"\n"
__embtk_msg_h = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
@@ -75,9 +75,9 @@ __embtk_mk_pathnotexist = $(shell test -e $(1) || echo y)
__embtk_mk_uquote = $(subst ",,$(strip $(1)))
# Macro to print messages
-embtk_pwarning = $(call embtk_echo_yellow,"$(__embtk_msg_h)\\n~~ EmbToolkit ~~ WARNING: $(1)\\n$(__embtk_msg_h)")
-embtk_perror = $(call embtk_echo_red,"$(__embtk_msg_h)\\n~~ EmbToolkit ~~ ERROR: $(1)\\n$(__embtk_msg_h)")
-embtk_pinfo = $(call embtk_echo_blue,"$(__embtk_msg_h)\n~~ EmbToolkit ~~ $(1)\n$(__embtk_msg_h)")
+embtk_pwarning = $(call embtk_echo_yellow,"$(__embtk_msg_h)\\n~~ EmbToolkit ~~ WARNING: $(call __embtk_mk_uquote,$(1))\\n$(__embtk_msg_h)")
+embtk_perror = $(call embtk_echo_red,"$(__embtk_msg_h)\\n~~ EmbToolkit ~~ ERROR: $(call __embtk_mk_uquote,$(1))\\n$(__embtk_msg_h)")
+embtk_pinfo = $(call embtk_echo_blue,"$(__embtk_msg_h)\\n~~ EmbToolkit ~~ $(call __embtk_mk_uquote,$(1))\\n$(__embtk_msg_h)")
# Macros for emmpty, space and comma
embtk_empty :=