summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-08 17:16:44 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-08 17:16:44 +0100
commite10a8effd088457c7e5fa1183d8432abe930542b (patch)
tree73a14e214f0edf8b81ccf4a6f073e0096177fede /mk
parent2630688e27e9068ffa7a39ba3972c2f4fb710910 (diff)
downloadembtoolkit-e10a8effd088457c7e5fa1183d8432abe930542b.tar.gz
embtoolkit-e10a8effd088457c7e5fa1183d8432abe930542b.tar.bz2
embtoolkit-e10a8effd088457c7e5fa1183d8432abe930542b.tar.xz
Build system: internal macros: add __embtk_strneq macro
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/macros.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/macros.mk b/mk/macros.mk
index ffe0a50..571346b 100644
--- a/mk/macros.mk
+++ b/mk/macros.mk
@@ -52,6 +52,16 @@ __embtk_msg_h = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__embtk_streq = $(if $(subst x$(1),,x$(2)),,y)
#
+# __embtk_strneq:
+# A macro for two strings comparison. It returns y if the strings are different
+# and nothing if they are the same.
+# Note: This macro strips passed parameters
+# Usage:
+# $(call __embtk_strneq,str1,str2)
+#
+__embtk_strneq = $(if $(subst x$(1),,x$(2)),y)
+
+#
# __embtk_mk_pathexist
# A macro to test if a path exists. It returns y if the path exists and nothing
# if not.