summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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