summaryrefslogtreecommitdiff
path: root/include/verbose.mk
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2007-04-11 22:59:42 +0000
committerMike Baker <mbm@openwrt.org>2007-04-11 22:59:42 +0000
commit9b62c7eb9d767956f9bc4066341b24077dce4332 (patch)
tree8ade56dd2246807dd06e523a6cfa9d6dfe24c2ff /include/verbose.mk
parent30dfff4849d178906314dabe3180e96b29ad423d (diff)
downloadmtk-20170518-9b62c7eb9d767956f9bc4066341b24077dce4332.zip
mtk-20170518-9b62c7eb9d767956f9bc4066341b24077dce4332.tar.gz
mtk-20170518-9b62c7eb9d767956f9bc4066341b24077dce4332.tar.bz2
minor tweaks to the verbose system
SVN-Revision: 6936
Diffstat (limited to 'include/verbose.mk')
-rw-r--r--include/verbose.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/verbose.mk b/include/verbose.mk
index 99747ed..6b2d6d0 100644
--- a/include/verbose.mk
+++ b/include/verbose.mk
@@ -23,13 +23,17 @@ ifeq ($(IS_TTY),1)
_N:="\\033[m" #normal
endif
+define MESSAGE
+ echo -e "$(_Y)$(1)$(_N)" >&3
+endef
+
ifneq ($(KBUILD_VERBOSE),99)
ifeq ($(QUIET),1)
$(MAKECMDGOALS): trace
trace: FORCE
@[ -f "$(MAKECMDGOALS)" ] || { \
[ -z "$${PWD##$$TOPDIR}" ] || DIR=" -C $${PWD##$$TOPDIR/}"; \
- echo -e "$(_Y)make[$$(($(MAKELEVEL)+1))]$$DIR $(MAKECMDGOALS)$(_N)" >&3; \
+ $(call MESSAGE, "make[$$(($(MAKELEVEL)+1))]$$DIR $(MAKECMDGOALS)"); \
}
else
export QUIET:=1