From 5adb76c37d0d927eaf0385047704111690f2031d Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 10 Oct 2022 10:51:33 +0100 Subject: [PATCH] Include lightweight tags (that GitHub uses to mark releases) when forming the version number and version string. Duh. --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index bc6710d8..7b896b3b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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