diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2015-04-29 15:05:19 +0200 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2015-04-30 11:12:01 +0200 |
commit | 624286313ab61f5222e37a97b35ca61ac3f67369 (patch) | |
tree | abc1eef5220110147438ea3a2fb2bb13f580c1c2 /Makefile | |
parent | d70e78c49fc9c63b2d37c596b7ad3cbd38f8e574 (diff) |
build: add support for make -s
Adds support for make -s to get a really silent build. This is
useful to get a shorter travis build log.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -34,18 +34,31 @@ endif ifneq ($V,1) q := @ cmd-echo := true +cmd-echo-silent := echo else q := cmd-echo := echo +cmd-echo-silent := true endif +ifneq ($(filter 4.%,$(MAKE_VERSION)),) # make-4 +ifneq ($(filter %s ,$(firstword x$(MAKEFLAGS))),) +cmd-echo-silent := true +endif +else # make-3.8x +ifneq ($(filter s% -s%,$(MAKEFLAGS)),) +cmd-echo-silent := true +endif +endif + + include core/core.mk include ta/ta.mk .PHONY: clean clean: - @echo ' CLEAN .' + @$(cmd-echo-silent) ' CLEAN .' ${q}rm -f $(cleanfiles) .PHONY: cscope |