]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: propagate Git version via generated header
authorPatrick Steinhardt <ps@pks.im>
Fri, 6 Dec 2024 13:24:39 +0000 (14:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2024 22:52:08 +0000 (07:52 +0900)
commit0c8d33951400f7d7175e1dad51e970fb70849f2b
treef3d40e1e433824b1c1b211e3943642c553240966
parent4838deab65e71686353ad2e40cad679e26bfc0a4
Makefile: propagate Git version via generated header

We set up a couple of preprocessor macros when compiling Git that
propagate the version that Git was built from to `git version` et al.
The way this is set up makes it harder than necessary to reuse the
infrastructure across the different build systems.

Refactor this such that we generate a "version-def.h" header via
`GIT-VERSION-GEN` instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
GIT-VERSION-GEN
Makefile
contrib/buildsystems/CMakeLists.txt
version-def.h.in [new file with mode: 0644]
version.c