diff --git a/Makefile b/Makefile index aa68c246b6..760d20f9a2 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ bin: generate # dev creates binaries for testing Vault locally. These are put # into ./bin/ as well as $GOPATH/bin 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: generate diff --git a/scripts/build.sh b/scripts/build.sh index a1a78175e5..2322f1dda7 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -33,7 +33,7 @@ rm -rf pkg/* mkdir -p bin/ # 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_ARCH=$(go env GOARCH) fi @@ -61,7 +61,7 @@ for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do cp ${F} ${MAIN_GOPATH}/bin/ done -if [ "${TF_DEV}x" = "x" ]; then +if [ "${VAULT_DEV_BUILD}x" = "x" ]; then # Zip and copy to the dist dir echo "==> Packaging..." for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do