summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-07-31 04:47:02 +0300
committerDevaev Maxim <[email protected]>2019-07-31 04:47:02 +0300
commit43602b0d789fa45be08c7c76632be5bf693f126a (patch)
tree0f9221ef7216714a2b4739eef0ec3cae12e44a0a /Makefile
parent8507637adf30783ed54bb42e726c13d4717f7d9f (diff)
Makefile: using optbool
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 56e44d5e..95cbe44f 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,12 @@ USTREAMER_MIN_VERSION ?= 1.1
# =====
+define optbool
+$(filter $(shell echo $(1) | tr A-Z a-z),yes on 1)
+endef
+
+
+# =====
all:
@ echo "Useful commands:"
@ echo " make # Print this help"
@@ -31,7 +37,7 @@ all:
testenv:
docker build \
- $(if $(NC),--no-cache,) \
+ $(if $(call optbool,$(NC)),--no-cache,) \
--rm \
--tag $(TESTENV_IMAGE) \
--build-arg USTREAMER_MIN_VERSION=$(USTREAMER_MIN_VERSION) \