Simplified doc-site generation
[AGL/documentation.git] / docs / ATTIC / 3_Developer_Guides / 4_X(cross)_Development_System:_User's_Guide / 4_X(cross)_Development_System:_ Internals / 3.4.4.4_xds-cli / 3.4.4.4.1_Build.md
1 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/devguides/master/xds-docs-guides-devguides-book.yml -->
2
3 # How to build
4
5 ## Dependencies
6
7 Install [Go](https://golang.org/doc/install) and some other tools.
8
9 Refer to [Prerequisites chapter](../1_Prerequisites.html) for more details.
10
11 ## Building
12
13 Clone sources under `$ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds/xds-cli`
14 in order respect directory hierarchy that match Go package import logic (see
15 [How to Write Go Code](https://golang.org/doc/code.html) for more details).
16
17 Then use delivered Makefile :
18
19 ```bash
20 # Declare ROOTDIR, can be any location (for example xds-build)
21 ROOTDIR=$HOME/xds-build
22
23 # Create directory hierarchy that match Go package import logic
24 mkdir -p $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds
25 cd $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds
26
27 # Clone sources
28 git clone https://gerrit.automotivelinux.org/gerrit/src/xds/xds-cli
29 # or git clone ssh://YOUR_USERNAME@gerrit.automotivelinux.org:29418/src/xds/xds-cli
30
31 # Build xds-cli
32 # (note that GOPATH will correctly be set by Makefile)
33 cd xds-cli
34 make all
35 ```
36
37 Generate xds-cli package / tarball
38
39 ```bash
40 make package-all
41 ```