Updated makefile to set version from git tag

This commit is contained in:
Carlos Salguero
2019-09-10 09:30:39 -03:00
parent 2d5ddada50
commit 9d3f6cd254

View File

@@ -1,6 +1,6 @@
GO := go
pkgs = $(shell find . -type d -name "pt-*" -exec basename {} \;)
VERSION="3.0.13"
VERSION=$(shell git describe --abbrev=0 --tags)
BUILD=$(shell date +%FT%T%z)
GOVERSION=$(shell go version | cut --delimiter=" " -f3)
COMMIT=$(shell git rev-list -1 HEAD)