From 369f0d81265f462343031c47378f007e5b41a229 Mon Sep 17 00:00:00 2001 From: Izuru Yakumo Date: Sat, 8 Apr 2023 23:45:23 -0300 Subject: [PATCH] Make use of tags Signed-off-by: Izuru Yakumo --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6b90e2d..4ac85af 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ destdir ?= goflags ?= -v -ldflags "-w -X `go list`.Version=$(version) -X `go list`.Commit=$(commit)" -tags "static_build" prefix ?= /usr/local -version ?= `git rev-list --count HEAD || echo "$version"` +version ?= `git describe --abbrev=0 --tags || echo "$version"` commit ?= `git rev-parse --short HEAD || echo "$commit"` -- 2.43.0