From: Lars-Peter Clausen Date: Mon, 8 Feb 2010 22:28:19 +0000 (+0000) Subject: Allow colored output to be disabled when running a non-verbose build by setting NO_CO... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6f3db147b68d6cb6557f6857b90bf6c67afbcf1f;p=openwrt%2Fstaging%2F981213.git Allow colored output to be disabled when running a non-verbose build by setting NO_COLOR=1 SVN-Revision: 19560 --- 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)