kbuild: replace $(dot-target).tmp in filechk with $(tmp-target)
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 9 Jan 2023 13:40:40 +0000 (22:40 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 22 Jan 2023 14:43:33 +0000 (23:43 +0900)
$(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>
scripts/Kbuild.include

index 4648ab8f11d468801966d133f0b34c37b69305ed..7778cc97a4e042cd763fb2f743e542a0c91d71ee 100644 (file)
@@ -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