diff --git a/build/Makefile b/build/Makefile index 74b803ac..957d59ef 100644 --- a/build/Makefile +++ b/build/Makefile @@ -102,9 +102,8 @@ build-basecoin: git-branch ### # set app_version -#version-%: $(GOPATH)/bin/% -version-%: - test -n "$(BUILD_NUMBER)" +version-%: $(GOPATH)/bin/% + test -z "$(BUILD_NUMBER)" && echo "BUILD_NUMBER is not set" && false $(eval $*_version=$(shell $< version | head -1 | cut -d- -f1 | sed 's/^\(ethermint:\s*\|\)\(v\|\)//' | tr -d '\t ' )) # set build_folder