diff --git a/Makefile b/Makefile index 9fa09291..eb7659d2 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +BRANCH := `git rev-parse --abbrev-ref HEAD` + install: which wtf | xargs rm - go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6 --dirty=-dev) -X main.builtat=$(shell date +%FT%T%z)" + go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6)_$(BRANCH) -X main.builtat=$(shell date +%FT%T%z)"