788cad885e
The purpose is being able to examine particular target interdependency graph for a given image having been configured to avoid convoluted dependencies (loops in particular). The implementation is based on SHELL hook hint by John Graham-Cumming: http://cmcrossroads.com/ask-mr-make/6535-tracing-rule-execution-in-gnu-make
10 lines
271 B
Makefile
10 lines
271 B
Makefile
# enable make target tracing
|
|
|
|
ifdef REPORT
|
|
TRACE_PREFIX := trace:building
|
|
OLD_SHELL := $(SHELL)
|
|
SHELL = $(info $(TRACE_PREFIX) $@$(if $^$|, -> $^ $|))$(OLD_SHELL)
|
|
# piggyback BUILDDIR back into supervising environment
|
|
$(info $(TRACE_PREFIX) BUILDDIR = $(BUILDDIR))
|
|
endif
|