mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 14:11:10 +01:00
TF_DEV->VAULT_DEV_BUILD
This commit is contained in:
parent
7a036842ea
commit
c77e00d773
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ bin: generate
|
|||||||
# dev creates binaries for testing Vault locally. These are put
|
# dev creates binaries for testing Vault locally. These are put
|
||||||
# into ./bin/ as well as $GOPATH/bin
|
# into ./bin/ as well as $GOPATH/bin
|
||||||
dev: generate
|
dev: generate
|
||||||
@TF_DEV=1 sh -c "'$(CURDIR)/scripts/build.sh'"
|
@VAULT_DEV_BUILD=1 sh -c "'$(CURDIR)/scripts/build.sh'"
|
||||||
|
|
||||||
# test runs the unit tests and vets the code
|
# test runs the unit tests and vets the code
|
||||||
test: generate
|
test: generate
|
||||||
|
|||||||
@ -33,7 +33,7 @@ rm -rf pkg/*
|
|||||||
mkdir -p bin/
|
mkdir -p bin/
|
||||||
|
|
||||||
# If its dev mode, only build for ourself
|
# If its dev mode, only build for ourself
|
||||||
if [ "${TF_DEV}x" != "x" ]; then
|
if [ "${VAULT_DEV_BUILD}x" != "x" ]; then
|
||||||
XC_OS=$(go env GOOS)
|
XC_OS=$(go env GOOS)
|
||||||
XC_ARCH=$(go env GOARCH)
|
XC_ARCH=$(go env GOARCH)
|
||||||
fi
|
fi
|
||||||
@ -61,7 +61,7 @@ for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do
|
|||||||
cp ${F} ${MAIN_GOPATH}/bin/
|
cp ${F} ${MAIN_GOPATH}/bin/
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${TF_DEV}x" = "x" ]; then
|
if [ "${VAULT_DEV_BUILD}x" = "x" ]; then
|
||||||
# Zip and copy to the dist dir
|
# Zip and copy to the dist dir
|
||||||
echo "==> Packaging..."
|
echo "==> Packaging..."
|
||||||
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do
|
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user