diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-03-10 21:07:16 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-03-10 21:07:16 +0100 |
commit | fc14ed96e59e0548a350d99cb46d9eb3c6ff6ff5 (patch) | |
tree | 736c9c79950c132fb4be6d72238719d7b59ad6c0 /mk | |
parent | 33c2d942cda5c22a9db8b1ab473ac5b425da73dc (diff) | |
download | embtoolkit-fc14ed96e59e0548a350d99cb46d9eb3c6ff6ff5.tar.gz embtoolkit-fc14ed96e59e0548a350d99cb46d9eb3c6ff6ff5.tar.bz2 embtoolkit-fc14ed96e59e0548a350d99cb46d9eb3c6ff6ff5.tar.xz |
Build system: generic macros: create internal macro to unquote a string
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/macros.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/macros.mk b/mk/macros.mk index 0a5cbe3..f34d520 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -67,6 +67,13 @@ __embtk_mk_pathexist = $(shell test -e $(1) && echo y) # __embtk_mk_pathnotexist = $(shell test -e $(1) || echo y) +# +# __embtk_mk_unquotestr +# A macro to unquote a string. +# Usage: $(call __embtk_mk_unquotestr,$(myquotedvar)) +# +__embtk_mk_unquotestr = $(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)") |