From 53013dcb054e4c9eecc4d7914b4a9ef668954161 Mon Sep 17 00:00:00 2001 From: Andy Xie Date: Sun, 8 Jul 2018 12:12:36 +0800 Subject: [PATCH] make VERSION value more flexible --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8052843f..67a1399c 100644 --- a/Makefile +++ b/Makefile @@ -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)