2016-11-27 06:16:53 +00:00
|
|
|
Building fzf
|
|
|
|
============
|
|
|
|
|
|
|
|
Build instructions
|
|
|
|
------------------
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
- `go` executable in $PATH
|
|
|
|
|
|
|
|
### Using Makefile
|
|
|
|
|
2017-06-02 07:32:15 +00:00
|
|
|
Makefile will set up and use its own `$GOPATH` under the project root.
|
2016-11-27 06:16:53 +00:00
|
|
|
|
2017-06-02 07:32:15 +00:00
|
|
|
```sh
|
|
|
|
# Build fzf binary for your platform in target
|
2016-11-27 06:16:53 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
# Build fzf binary and copy it to bin directory
|
|
|
|
make install
|
|
|
|
|
2017-06-02 07:32:15 +00:00
|
|
|
# Build 32-bit and 64-bit executables and tarballs in target
|
2016-11-27 06:16:53 +00:00
|
|
|
make release
|
|
|
|
|
2017-06-02 07:32:15 +00:00
|
|
|
# Make release archives for all supported platforms in target
|
2017-01-31 12:43:41 +00:00
|
|
|
make release-all
|
2016-11-27 06:16:53 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Using `go get`
|
|
|
|
|
|
|
|
Alternatively, you can build fzf directly with `go get` command without
|
2017-01-31 12:43:41 +00:00
|
|
|
manually cloning the repository.
|
2016-11-27 06:16:53 +00:00
|
|
|
|
|
|
|
```sh
|
2017-06-02 07:32:15 +00:00
|
|
|
go get -u github.com/junegunn/fzf
|
2016-11-27 06:16:53 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Third-party libraries used
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
- [mattn/go-runewidth](https://github.com/mattn/go-runewidth)
|
|
|
|
- Licensed under [MIT](http://mattn.mit-license.org)
|
|
|
|
- [mattn/go-shellwords](https://github.com/mattn/go-shellwords)
|
|
|
|
- Licensed under [MIT](http://mattn.mit-license.org)
|
|
|
|
- [mattn/go-isatty](https://github.com/mattn/go-isatty)
|
|
|
|
- Licensed under [MIT](http://mattn.mit-license.org)
|
|
|
|
- [tcell](https://github.com/gdamore/tcell)
|
|
|
|
- Licensed under [Apache License 2.0](https://github.com/gdamore/tcell/blob/master/LICENSE)
|
|
|
|
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
[MIT](LICENSE)
|