aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/toplevel.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 744695b19c..48ea44aa24 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -4,7 +4,7 @@
PREP_MK= OPENWRT_BUILD= QUIET=0
-export IS_TTY=$(shell tty -s && echo 1 || echo 0)
+export IS_TTY=$(if $(MAKE_TERMOUT),1,0)
include $(TOPDIR)/include/verbose.mk