docs/INSTALL: Update installation with Makefile cmds
This commit is contained in:
parent
9b729654f6
commit
872d06e035
|
@ -42,8 +42,11 @@
|
||||||
you can avoid typing this every time you open a new terminal window.
|
you can avoid typing this every time you open a new terminal window.
|
||||||
|
|
||||||
* **dep:** This project uses `dep` to manage dependencies as well
|
* **dep:** This project uses `dep` to manage dependencies as well
|
||||||
as to provide *reproducible builds*. To install `dep`, execute the
|
as to provide *reproducible builds*.
|
||||||
following command (assumes you already have Go properly installed):
|
|
||||||
|
**Note**: `dep` is automatically installed via the `make`. To fetch `dep`
|
||||||
|
manually, use the following command (assumes you already have Go properly
|
||||||
|
installed):
|
||||||
```
|
```
|
||||||
go get -u github.com/golang/dep/cmd/dep
|
go get -u github.com/golang/dep/cmd/dep
|
||||||
```
|
```
|
||||||
|
@ -53,10 +56,9 @@
|
||||||
With the preliminary steps completed, to install `lnd`, `lncli`, and all
|
With the preliminary steps completed, to install `lnd`, `lncli`, and all
|
||||||
related dependencies run the following commands:
|
related dependencies run the following commands:
|
||||||
```
|
```
|
||||||
git clone https://github.com/lightningnetwork/lnd $GOPATH/src/github.com/lightningnetwork/lnd
|
go get -d github.com/lightningnetwork/lnd
|
||||||
cd $GOPATH/src/github.com/lightningnetwork/lnd
|
cd $GOPATH/src/github.com/lightningnetwork/lnd
|
||||||
dep ensure
|
make && make install
|
||||||
go install . ./cmd/...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Updating**
|
**Updating**
|
||||||
|
@ -64,16 +66,15 @@ go install . ./cmd/...
|
||||||
To update your version of `lnd` to the latest version run the following
|
To update your version of `lnd` to the latest version run the following
|
||||||
commands:
|
commands:
|
||||||
```
|
```
|
||||||
cd $GOPATH/src/github.com/lightningnetwork/lnd
|
git pull
|
||||||
git pull && dep ensure
|
make && make install
|
||||||
go install . ./cmd/...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Tests**
|
**Tests**
|
||||||
|
|
||||||
To check that `lnd` was installed properly run the following command:
|
To check that `lnd` was installed properly run the following command:
|
||||||
```
|
```
|
||||||
go install; go test -v -p 1 $(go list ./... | grep -v '/vendor/')
|
make check
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing btcd
|
### Installing btcd
|
||||||
|
@ -84,11 +85,7 @@ branch. To install, run the following commands:
|
||||||
|
|
||||||
Install **btcd**: (must be from roasbeef fork, not from btcsuite)
|
Install **btcd**: (must be from roasbeef fork, not from btcsuite)
|
||||||
```
|
```
|
||||||
go get -u github.com/Masterminds/glide
|
make btcd
|
||||||
git clone https://github.com/roasbeef/btcd $GOPATH/src/github.com/roasbeef/btcd
|
|
||||||
cd $GOPATH/src/github.com/roasbeef/btcd
|
|
||||||
glide install
|
|
||||||
go install . ./cmd/...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Starting btcd
|
### Starting btcd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user