make bin currently won't work outside of GOPATH
This commit is contained in:
parent
5971368f4e
commit
0a2f4d884a
4
Makefile
4
Makefile
|
@ -28,14 +28,14 @@ release: install-build-deps test releasebin package ## Build a release build
|
|||
|
||||
bin: install-build-deps ## Build debug/test build
|
||||
@echo "WARN: 'make bin' is for debug / test builds only. Use 'make release' for release builds."
|
||||
@GO111MODULE=off sh -c "$(CURDIR)/scripts/build.sh"
|
||||
@GO111MODULE=auto sh -c "$(CURDIR)/scripts/build.sh"
|
||||
|
||||
releasebin: install-build-deps
|
||||
@grep 'const VersionPrerelease = "dev"' version/version.go > /dev/null ; if [ $$? -eq 0 ]; then \
|
||||
echo "ERROR: You must remove prerelease tags from version/version.go prior to release."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@GO111MODULE=off sh -c "$(CURDIR)/scripts/build.sh"
|
||||
@GO111MODULE=auto sh -c "$(CURDIR)/scripts/build.sh"
|
||||
|
||||
package:
|
||||
$(if $(VERSION),,@echo 'VERSION= needed to release; Use make package skip compilation'; exit 1)
|
||||
|
|
Loading…
Reference in New Issue