summaryrefslogtreecommitdiffstats
path: root/include/verbose.mk
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-02-08 22:28:19 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-02-08 22:28:19 +0000
commit6f3db147b68d6cb6557f6857b90bf6c67afbcf1f (patch)
tree3059c5dad4ece6535672969d7afdfd832284ef7f /include/verbose.mk
parent4e0cd7b7a1eb77143871f09f0039409c3403d005 (diff)
downloadmaster-31e0f0ae-6f3db147b68d6cb6557f6857b90bf6c67afbcf1f.tar.gz
master-31e0f0ae-6f3db147b68d6cb6557f6857b90bf6c67afbcf1f.tar.bz2
master-31e0f0ae-6f3db147b68d6cb6557f6857b90bf6c67afbcf1f.zip
Allow colored output to be disabled when running a non-verbose build by setting NO_COLOR=1
SVN-Revision: 19560
Diffstat (limited to 'include/verbose.mk')
-rw-r--r--include/verbose.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/verbose.mk b/include/verbose.mk
index 857be24a32..9fe27ced52 100644
--- a/include/verbose.mk
+++ b/include/verbose.mk
@@ -18,8 +18,10 @@ ifeq ("$(origin V)", "command line")
endif
ifeq ($(IS_TTY),1)
- _Y:=\\033[33m
- _N:=\\033[m
+ ifneq ($(strip $(NO_COLOR)),1)
+ _Y:=\\033[33m
+ _N:=\\033[m
+ endif
endif
ifneq ($(KBUILD_VERBOSE),99)