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 NO_TRACE_MAKE:=$(MAKE) V=99
13 ifeq ("$(origin V)", "command line")
18 ifneq ($(KBUILD_VERBOSE),99)
20 $(MAKECMDGOALS): trace
22 @[ -f "$(MAKECMDGOALS)" ] || { \
23 [ -z "$${PWD##$$TOPDIR}" ] || DIR=" -C $${PWD##$$TOPDIR/}"; \
24 echo -e "\33[33mmake[$$(($(MAKELEVEL)+1))]$$DIR $(MAKECMDGOALS)\33[m" >&3; \
28 ifeq ($(KBUILD_VERBOSE),0)
29 MAKE:=&>/dev/null $(MAKE)
31 MAKE:=cmd() { $(MAKE) $$* || { echo "Build failed. Please re-run make with V=99 to see what's going on"; /bin/false; } } 3>&1 4>&2; cmd
34 .SILENT: $(MAKECMDGOALS)