diff --git a/Makefile b/Makefile index 9746a42..dc19f80 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # extract name from package.json PACKAGE_NAME := $(shell awk '/"name":/ {gsub(/[",]/, "", $$2); print $$2}' package.json) -VERSION := $(shell git describe 2>/dev/null || echo 1) +VERSION := $(shell T=$$(git describe 2>/dev/null) || T=1; echo $$T | tr '-' '.') ifeq ($(TEST_OS),) TEST_OS = centos-7 endif