diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-01-09 22:40:40 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-01-22 23:43:33 +0900 |
commit | 12fec3d60118237e4674a463c2c2923b8279ad67 (patch) | |
tree | 189d0d5c45e1e55ecf8184694540c77ab07b972e | |
parent | c83b16cefd78f55071840e1159ead9fe62747769 (diff) | |
download | linux-stable-12fec3d60118237e4674a463c2c2923b8279ad67.tar.gz linux-stable-12fec3d60118237e4674a463c2c2923b8279ad67.tar.bz2 linux-stable-12fec3d60118237e4674a463c2c2923b8279ad67.zip |
kbuild: replace $(dot-target).tmp in filechk with $(tmp-target)
$(tmp-target) is a better fit for local use like this.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
-rw-r--r-- | scripts/Kbuild.include | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 4648ab8f11d4..7778cc97a4e0 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -99,11 +99,11 @@ define filechk $(check-FORCE) $(Q)set -e; \ mkdir -p $(dir $@); \ - trap "rm -f $(dot-target).tmp" EXIT; \ - { $(filechk_$(1)); } > $(dot-target).tmp; \ - if [ ! -r $@ ] || ! cmp -s $@ $(dot-target).tmp; then \ + trap "rm -f $(tmp-target)" EXIT; \ + { $(filechk_$(1)); } > $(tmp-target); \ + if [ ! -r $@ ] || ! cmp -s $@ $(tmp-target); then \ $(kecho) ' UPD $@'; \ - mv -f $(dot-target).tmp $@; \ + mv -f $(tmp-target) $@; \ fi endef |