projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5d2891
)
kbuild: refactor if_changed
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Fri, 30 Nov 2018 01:05:29 +0000
(10:05 +0900)
committer
Masahiro Yamada
<yamada.masahiro@socionext.com>
Sat, 1 Dec 2018 14:13:14 +0000
(23:13 +0900)
'@set -e; $(echo-cmd) $(cmd_$(1)' can be replaced with '$(cmd)'.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Kbuild.include
patch
|
blob
|
history
diff --git
a/scripts/Kbuild.include
b/scripts/Kbuild.include
index ba297fdd7c528d34c53716c212ef258e60aa5e98..87e188609ef7a295bd4eee8e774635798d0f1a8b 100644
(file)
--- a/
scripts/Kbuild.include
+++ b/
scripts/Kbuild.include
@@
-251,8
+251,7
@@
any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^)
# Execute command if command has changed or prerequisite(s) are updated.
if_changed = $(if $(strip $(any-prereq) $(arg-check)), \
- @set -e; \
- $(echo-cmd) $(cmd_$(1)); \
+ $(cmd); \
printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd, @:)
# Execute the command and also postprocess generated .d dependencies file.