mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
synced 2025-09-15 09:07:11 +10:00
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>
This commit is contained in:
parent
c83b16cefd
commit
12fec3d601
@ -99,11 +99,11 @@ define filechk
|
|||||||
$(check-FORCE)
|
$(check-FORCE)
|
||||||
$(Q)set -e; \
|
$(Q)set -e; \
|
||||||
mkdir -p $(dir $@); \
|
mkdir -p $(dir $@); \
|
||||||
trap "rm -f $(dot-target).tmp" EXIT; \
|
trap "rm -f $(tmp-target)" EXIT; \
|
||||||
{ $(filechk_$(1)); } > $(dot-target).tmp; \
|
{ $(filechk_$(1)); } > $(tmp-target); \
|
||||||
if [ ! -r $@ ] || ! cmp -s $@ $(dot-target).tmp; then \
|
if [ ! -r $@ ] || ! cmp -s $@ $(tmp-target); then \
|
||||||
$(kecho) ' UPD $@'; \
|
$(kecho) ' UPD $@'; \
|
||||||
mv -f $(dot-target).tmp $@; \
|
mv -f $(tmp-target) $@; \
|
||||||
fi
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user