diff options
Diffstat (limited to 'core/mk/macros.mk')
-rw-r--r-- | core/mk/macros.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/mk/macros.mk b/core/mk/macros.mk index e2c4ff1..b8208d5 100644 --- a/core/mk/macros.mk +++ b/core/mk/macros.mk @@ -133,6 +133,31 @@ endef embtk_abspath = $(abspath $(patsubst %/,%,$(call embtk_uquote,$(1)))) # +# Macro to test if integer $(1) is greater than $(2) +# +embtk_gt = $(shell test $(1) -gt $(2) && echo y) + +# +# Macro to test if integer $(1) is greater than or equal to $(2) +# +embtk_ge = $(shell test $(1) -ge $(2) && echo y) + +# +# Macro to test if integer $(1) is less than $(2) +# +embtk_lt = $(shell test $(1) -lt $(2) && echo y) + +# +# Macro to test if integer $(1) is less than or equal to $(2) +# +embtk_le = $(shell test $(1) -le $(2) && echo y) + +# +# Macro to test if integer $(1) is equal to $(2) +# +embtk_eq = $(shell test $(1) -eq $(2) && echo y) + +# # Packages management macros # include core/mk/pkg-macros/vars.mk |