summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-08-19 17:49:46 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-08-19 17:49:46 +0200
commit71c28eff00a8a8896c45fa20330b623d265ae5c7 (patch)
treed13462434b03898fc522c203ada463110e8c1cf3 /Makefile
parent1898c5396e8e2d36386716cac2d5971ce4a4d8b0 (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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