diff options
Diffstat (limited to 'mk/macros.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)") |