README/Makefile: Mention & auto-install gox

This commit is contained in:
Paul Hinze 2016-02-25 06:48:11 -06:00
parent d39e6029f9
commit 0cf6ba6f64
2 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,7 @@ Next, using [Git](https://git-scm.com/), clone this repository into `$GOPATH/src
$ make
```
To compile a development version of Terraform and the built-in plugins, run `make dev`. This will put Terraform binaries in the `bin` and `$GOPATH/bin` folders:
To compile a development version of Terraform and the built-in plugins, run `make dev`. This will build everything using [gox](https://github.com/mitchellh/gox) and put Terraform binaries in the `bin` and `$GOPATH/bin` folders:
```sh
$ make dev

View File

@ -30,6 +30,11 @@ if [ "${TF_DEV}x" != "x" ]; then
XC_ARCH=$(go env GOARCH)
fi
if ! which gox > /dev/null; then
echo "==> Installing gox..."
go get -u github.com/mitchellh/gox
fi
# Build!
echo "==> Building..."
gox \