diff options
author | Mike Baker <mbm@openwrt.org> | 2007-04-11 22:59:42 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2007-04-11 22:59:42 +0000 |
commit | 9b62c7eb9d767956f9bc4066341b24077dce4332 (patch) | |
tree | 8ade56dd2246807dd06e523a6cfa9d6dfe24c2ff /include/verbose.mk | |
parent | 30dfff4849d178906314dabe3180e96b29ad423d (diff) | |
download | upstream-9b62c7eb9d767956f9bc4066341b24077dce4332.tar.gz upstream-9b62c7eb9d767956f9bc4066341b24077dce4332.tar.bz2 upstream-9b62c7eb9d767956f9bc4066341b24077dce4332.zip |
minor tweaks to the verbose system
SVN-Revision: 6936
Diffstat (limited to 'include/verbose.mk')
-rw-r--r-- | include/verbose.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/verbose.mk b/include/verbose.mk index 99747ed3fd..6b2d6d044b 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 |