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")
26 ifneq ($(KBUILD_VERBOSE
),99)
28 printf
"$(_Y)%s$(_N)\n" "$(1)" >&8
32 ifneq ($(CURDIR
),$(TOPDIR
))
33 _DIR
:=$(patsubst $(TOPDIR
)/%,%,${CURDIR})
37 _NULL
:=$(if
$(MAKECMDGOALS
),$(shell \
38 $(call MESSAGE
, make
[$(MAKELEVEL
)]$(if
$(_DIR
), -C
$(_DIR
)) $(MAKECMDGOALS
)); \
42 ifeq ($(KBUILD_VERBOSE
),0)
43 SILENT
:=>/dev
/null
2>&1
48 SUBMAKE
=cmd
() { $(SILENT
) $(MAKE
) -s
$$* ||
{ echo
"make $$*: build failed. Please re-run make with V=99 to see what's going on"; false
; } } 8>&1 9>&2; cmd
51 .SILENT
: $(MAKECMDGOALS
)