diff --git a/build/Makefile b/build/Makefile index c1f500f5..74b803ac 100644 --- a/build/Makefile +++ b/build/Makefile @@ -104,7 +104,7 @@ build-basecoin: git-branch # set app_version #version-%: $(GOPATH)/bin/% version-%: - if [ -z "$(BUILD_NUMBER)" ]; then echo "BUILD_NUMBER not set" ; false ; fi + test -n "$(BUILD_NUMBER)" $(eval $*_version=$(shell $< version | head -1 | cut -d- -f1 | sed 's/^\(ethermint:\s*\|\)\(v\|\)//' | tr -d '\t ' )) # set build_folder