diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-06-30 17:20:04 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-06-30 18:14:03 +0200 |
commit | 98c6cf40a60c272277ca9a7baa2723a97e38b3ff (patch) | |
tree | 588267691626d82571ac1e1c90f32ec372c67db7 /solenv | |
parent | 69ef1a0b445341cfa53b201c73eab93d7745b431 (diff) |
colorful interactive gbuild output
Change-Id: I22e9eacfddff611d368963162024437f4a7b7fdf
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/Output.mk | 7 |
1 files changed, 7 insertions, 0 deletions
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 |