diff --git a/README.md b/README.md index 533af44..7198444 100644 --- a/README.md +++ b/README.md @@ -114,22 +114,24 @@ conda install -c bioconda gotree ``` ### From sources -In order to build gotree, you must first [download](https://golang.org/dl/) and [install](https://golang.org/doc/install) Go on your system ($1.16.4$). +To build gotree, you must first [download](https://golang.org/dl/) and [install](https://golang.org/doc/install) Go on your system ($1.21.6$). Then you just have to type : ``` -go get github.com/evolbioinfo/gotree/ +git clone git@github.com:evolbioinfo/gotree.git +cd gotree +make && make install +# or go get . && go build . +# or go get . && go install . ``` -This will download Gotree sources from github. -You can then build it with: +The `gotree` executable should be located in the current folder (or the `$GOPATH/bin`). + +To test the executable: ``` -cd $GOPATH/src/github.com/evolbioinfo/gotree/ -make && make install +./test.sh ``` -The `gotree` executable should be located in the `$GOPATH/bin` folder. - ## Auto completion gotree uses [cobra](https://github.com/spf13/cobra), and therefore proposes a command to generate auto completion scripts: