Merge pull request #2810 from mitchellh/b-make-release
Split bin from prerelease guard so we can cross-compile dev builds
This commit is contained in:
commit
d21e9ffddf
8
Makefile
8
Makefile
|
@ -8,9 +8,13 @@ default: test dev
|
||||||
|
|
||||||
ci: deps test
|
ci: deps test
|
||||||
|
|
||||||
release: updatedeps test bin
|
release: updatedeps test releasebin
|
||||||
|
|
||||||
bin: deps
|
bin: deps
|
||||||
|
@echo "WARN: `make bin` is for debug / test builds only. Use `make release` for release builds."
|
||||||
|
@sh -c "$(CURDIR)/scripts/build.sh"
|
||||||
|
|
||||||
|
releasebin: deps
|
||||||
@grep 'const VersionPrerelease = ""' version.go > /dev/null ; if [ $$? -ne 0 ]; then \
|
@grep 'const VersionPrerelease = ""' version.go > /dev/null ; if [ $$? -ne 0 ]; then \
|
||||||
echo "ERROR: You must remove prerelease tags from version.go prior to release."; \
|
echo "ERROR: You must remove prerelease tags from version.go prior to release."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
@ -77,4 +81,4 @@ updatedeps:
|
||||||
fi
|
fi
|
||||||
@echo "INFO: Currently on $(GITBRANCH) ($(GITSHA))"
|
@echo "INFO: Currently on $(GITBRANCH) ($(GITSHA))"
|
||||||
|
|
||||||
.PHONY: bin checkversion ci default deps generate test testacc testrace updatedeps
|
.PHONY: bin checkversion ci default deps generate releasebin test testacc testrace updatedeps
|
||||||
|
|
Loading…
Reference in New Issue