]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: drop unneeded indirection for GIT-VERSION-GEN outputs
authorPatrick Steinhardt <ps@pks.im>
Fri, 20 Dec 2024 19:44:22 +0000 (20:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2024 20:36:44 +0000 (12:36 -0800)
commitb329f2eb002a53f2283b45de2ba5884f7b8cd5ba
tree6a19bed2176589ea81c01a16cf6c1be36833e39a
parent1b0882cba2f17ae126cba42bf58354f9290089d9
Makefile: drop unneeded indirection for GIT-VERSION-GEN outputs

Some of the callsites of GIT-VERSION-GEN generate the target file with a
"+" suffix first and then move the file into place when the new contents
are different compared to the old contents. This allows us to avoid a
needless rebuild by not updating timestamps of the target file when its
contents will remain unchanged anyway.

In fact though, this exact logic is already handled in GIT-VERSION-GEN,
so doing this manually is pointless. This is a leftover from an earlier
version of 4838deab65 (Makefile: refactor GIT-VERSION-GEN to be
reusable, 2024-12-06), where the script didn't handle that logic for us.

Drop the needless indirection.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/Makefile
Makefile