README/Makefile: Mention & auto-install gox
This commit is contained in:
parent
d39e6029f9
commit
0cf6ba6f64
|
@ -39,7 +39,7 @@ Next, using [Git](https://git-scm.com/), clone this repository into `$GOPATH/src
|
||||||
$ make
|
$ 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
|
```sh
|
||||||
$ make dev
|
$ make dev
|
||||||
|
|
|
@ -30,6 +30,11 @@ if [ "${TF_DEV}x" != "x" ]; then
|
||||||
XC_ARCH=$(go env GOARCH)
|
XC_ARCH=$(go env GOARCH)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! which gox > /dev/null; then
|
||||||
|
echo "==> Installing gox..."
|
||||||
|
go get -u github.com/mitchellh/gox
|
||||||
|
fi
|
||||||
|
|
||||||
# Build!
|
# Build!
|
||||||
echo "==> Building..."
|
echo "==> Building..."
|
||||||
gox \
|
gox \
|
||||||
|
|
Loading…
Reference in New Issue