Include lightweight tags (that GitHub uses to mark releases) when forming the version number and version string. Duh.

This commit is contained in:
Mike Brady
2022-10-10 10:51:33 +01:00
parent b28ee3f179
commit 5adb76c37d
+3 -3
View File
@@ -37,14 +37,14 @@ endif
endif
endif
# include information generated by 'git describe --dirty' if requested
# include information generated by 'git describe --tags --dirty' if requested
if USE_GIT_VERSION
common.c: gitversion.h
gitversion.h: .git/index
printf "// Do not edit!\n" > gitversion.h
printf "// This file is automatically generated by 'git describe --dirty', if available.\n" >> gitversion.h
printf "// This file is automatically generated by 'git describe --tags --dirty', if available.\n" >> gitversion.h
printf " char git_version_string[] = \"" >> gitversion.h
git describe --dirty | tr -d '[[:space:]]' >> gitversion.h
git describe --tags --dirty | tr -d '[[:space:]]' >> gitversion.h
printf "\";\n" >> gitversion.h
CLEANFILES += gitversion.h
endif