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"`