From 52910b4d88cd9eff79a5c35f70bbd3d42ede0cf2 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <151835536+af-airbus@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:39:11 +0200 Subject: [PATCH] fix git describe for tagged release --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3b29aff8..06016389 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ ifneq ($(OS),Windows_NT) $(error "windist only works on Windows.") else @echo "Making Windows binary release." - $(eval distdir := bincat-win-$(shell git describe --dirty)) + $(eval distdir := bincat-win-$(shell git describe --tags --dirty)) mkdir -p $(distdir)/bin cp "$(shell ldd ocaml/build/bincat|perl -nle 'print $$1 if /.*=> (.*libgmp.*) \(.*\)/')" "$(distdir)/bin" cp ocaml/build/bincat "$(distdir)/bin/bincat.exe" @@ -98,7 +98,7 @@ endif lindist: STATIC=1 lindist: clean all @echo "Making Linux binary release." - $(eval distdir := bincat-linux-$(shell git describe --dirty)) + $(eval distdir := bincat-linux-$(shell git describe --tags --dirty)) mkdir -p "$(distdir)/bin" cp ocaml/build/bincat "$(distdir)/bin/bincat" cp ocaml/build/c2newspeak "$(distdir)/bin/c2newspeak"