|
@@ -251,7 +251,7 @@ any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^)
|
|
if_changed = $(if $(strip $(any-prereq) $(arg-check)), \
|
|
if_changed = $(if $(strip $(any-prereq) $(arg-check)), \
|
|
@set -e; \
|
|
@set -e; \
|
|
$(echo-cmd) $(cmd_$(1)); \
|
|
$(echo-cmd) $(cmd_$(1)); \
|
|
- printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd)
|
|
|
|
|
|
+ printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd, @:)
|
|
|
|
|
|
# Execute the command and also postprocess generated .d dependencies file.
|
|
# Execute the command and also postprocess generated .d dependencies file.
|
|
if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \
|
|
if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \
|
|
@@ -259,14 +259,14 @@ if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \
|
|
$(echo-cmd) $(cmd_$(1)); \
|
|
$(echo-cmd) $(cmd_$(1)); \
|
|
scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\
|
|
scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\
|
|
rm -f $(depfile); \
|
|
rm -f $(depfile); \
|
|
- mv -f $(dot-target).tmp $(dot-target).cmd)
|
|
|
|
|
|
+ mv -f $(dot-target).tmp $(dot-target).cmd, @:)
|
|
|
|
|
|
# Usage: $(call if_changed_rule,foo)
|
|
# Usage: $(call if_changed_rule,foo)
|
|
# Will check if $(cmd_foo) or any of the prerequisites changed,
|
|
# Will check if $(cmd_foo) or any of the prerequisites changed,
|
|
# and if so will execute $(rule_foo).
|
|
# and if so will execute $(rule_foo).
|
|
if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \
|
|
if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \
|
|
@set -e; \
|
|
@set -e; \
|
|
- $(rule_$(1)))
|
|
|
|
|
|
+ $(rule_$(1)), @:)
|
|
|
|
|
|
###
|
|
###
|
|
# why - tell why a a target got build
|
|
# why - tell why a a target got build
|