From 98c6cf40a60c272277ca9a7baa2723a97e38b3ff Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Tue, 30 Jun 2015 17:20:04 +0200 Subject: colorful interactive gbuild output Change-Id: I22e9eacfddff611d368963162024437f4a7b7fdf --- solenv/gbuild/Output.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'solenv') diff --git a/solenv/gbuild/Output.mk b/solenv/gbuild/Output.mk index ca3da3b7c5be..b9f8515200e4 100644 --- a/solenv/gbuild/Output.mk +++ b/solenv/gbuild/Output.mk @@ -48,6 +48,13 @@ endef gb_Output_ESCAPE := $(shell echo|awk 'BEGIN { printf "%c", 27 }' -) gb_Output_BELL := $(shell echo|awk 'BEGIN { printf "%c", 7 }' -) +# default to color output, if interactive +ifeq ($(origin gb_COLOR),undefined) +ifneq ($(MAKE_TERMOUT),) +gb_COLOR=$(true) +endif +endif + # only enable colorized output if # - gb_COLOR is set # - we have a known term -- cgit