From: Izuru Yakumo Date: Sun, 9 Apr 2023 02:45:23 +0000 (-0300) Subject: Make use of tags X-Git-Tag: 0.5.0 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6cd7714203e5cc0116e2360d37ed39a0e14ec03f;p=aya.git Make use of tags Signed-off-by: Izuru Yakumo --- 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"`