make VERSION value more flexible

This commit is contained in:
Andy Xie
2018-07-08 12:12:36 +08:00
parent f479d09e58
commit 53013dcb05

View File

@@ -19,7 +19,7 @@
all: build
# VERSION is the version of the binary.
VERSION:=$(shell git describe --tags --dirty)
VERSION?=$(shell if [ -d .git ]; then echo `git describe --tags --dirty`; else echo "UNKNOWN"; fi)
# TAG is the tag of the container image, default to binary version.
TAG?=$(VERSION)