diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-08-19 17:49:46 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-08-19 17:49:46 +0200 |
commit | 71c28eff00a8a8896c45fa20330b623d265ae5c7 (patch) | |
tree | d13462434b03898fc522c203ada463110e8c1cf3 | |
parent | 1898c5396e8e2d36386716cac2d5971ce4a4d8b0 (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>
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |