From 71c28eff00a8a8896c45fa20330b623d265ae5c7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 19 Aug 2015 17:49:46 +0200 Subject: build: Only use tput if $TERM is defined Otherwise we clutter the build log with warnings such as: tput: No value for $TERM and no -T specified on head-less CI/build systems (e.g. Debian's buildd). Signed-off-by: Tobias Klauser --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0dd349f..94f1598 100644 --- a/Makefile +++ b/Makefile @@ -122,8 +122,13 @@ VERSION_LONG = "$(VERSION_SHORT)$(CONFIG_RC) ($(NAME))" export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION export DEBUG HARDENING -bold = $(shell tput bold) -normal = $(shell tput sgr0) +ifneq ("$(TERM)", "") + bold = $(shell tput bold) + normal = $(shell tput sgr0) +else + bold = + normal = +endif ifneq ("$(CROSS_COMPILE)", "") WHAT := Cross-compiling -- cgit v1.2.3-54-g00ecf