2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 ifeq ($(NO_TRACE_MAKE),)
10 NO_TRACE_MAKE := $(MAKE) V=99
19 ifeq ("$(origin V)", "command line")
24 _Y:="\\033[33m" # yellow
29 echo -e "$(_Y)$(1)$(_N)" >&3
32 ifneq ($(KBUILD_VERBOSE),99)
34 ifneq ($(CURDIR),$(TOPDIR))
35 _DIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
39 _NULL:=$(if $(MAKECMDGOALS),$(shell \
40 $(call MESSAGE, "make[$(MAKELEVEL)]$(if $(_DIR), -C $(_DIR)) $(MAKECMDGOALS)"); \
43 ifeq ($(KBUILD_VERBOSE),0)
44 MAKE:=&>/dev/null $(MAKE)
47 MAKE:=cmd() { $(MAKE) $$* || { echo "make $$*: build failed. Please re-run make with V=99 to see what's going on"; false; } } 3>&1 4>&2; cmd
50 .SILENT: $(MAKECMDGOALS)