diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 14:13:20 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 14:13:20 +0200 |
commit | 03ea9e0e7107d59f207b3842f9fc3f74d036ac91 (patch) | |
tree | b25a65cff138b2dfec746355d101654672e96af6 /README.md | |
parent | 53f2a0c56e9604b8ac5cff73e62fc387c4676365 (diff) |
Used standard DESTDIR variable in make install
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -30,12 +30,19 @@ Clone this repo into your `$GOPATH/src/github.com/iotbzh` and use delivered Make make all ``` -And to install xds-agent in /usr/local/bin: +And to install xds-agent (by default in `/usr/local/bin`): ```bash make install ``` -> **NOTE**: To cross build for example for Windows, just execute: +>**NOTE:** Used `DESTDIR` to specify another install directory +>```bash +>make install DESTDIR=$HOME/opt/xds-agent +>``` + + +#### Cross build +For example on a Linux machine to cross-build for Windows, just execute: ```bash export GOOS=windows export GOARCH=amd64 |