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
17 ifeq ("$(origin V)", "command line")
21 ifneq ($(KBUILD_VERBOSE),99)
23 $(MAKECMDGOALS): trace
25 @[ -f "$(MAKECMDGOALS)" ] || { \
26 [ -z "$${PWD##$$TOPDIR}" ] || DIR=" -C $${PWD##$$TOPDIR/}"; \
27 echo -e "\33[33mmake[$$(($(MAKELEVEL)+1))]$$DIR $(MAKECMDGOALS)\33[m" >&3; \
31 ifeq ($(KBUILD_VERBOSE),0)
32 MAKE:=&>/dev/null $(MAKE)
34 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
37 .SILENT: $(MAKECMDGOALS)