diff options
Diffstat (limited to 'core/mk/macros.mk')
-rw-r--r-- | core/mk/macros.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/mk/macros.mk b/core/mk/macros.mk index ebb82d6..426d9be 100644 --- a/core/mk/macros.mk +++ b/core/mk/macros.mk @@ -85,6 +85,12 @@ __embtk_mk_pathnotexist = $(shell test -e $(1) || echo y) __embtk_mk_uquote = $(subst ",,$(strip $(1))) embtk_uquote = $(call __embtk_mk_uquote,$(1)) +# +# embtk_shell_quote +# A macro to quote a string for use in shell variable. +# +embtk_shell_quote = $(subst ','\'',$(1)) + # Macro to print messages 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)") |