mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-17 23:24:39 +00:00
Makefile: added support for "make swarm" command (#1412)
This commit is contained in:
parent
3e522f2e7d
commit
70320ceeae
2 changed files with 21 additions and 0 deletions
11
Makefile
Normal file
11
Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
# This Makefile is meant to be used by people that do not usually work
|
||||||
|
# with Go source code. If you know what GOPATH is then you probably
|
||||||
|
# don't need to bother with make.
|
||||||
|
|
||||||
|
GOBIN = $(shell pwd)/build/bin
|
||||||
|
|
||||||
|
swarm:
|
||||||
|
build/env.sh go run build/ci.go install ./cmd/swarm
|
||||||
|
@echo "Done building."
|
||||||
|
@echo "Run \"$(GOBIN)/swarm\" to launch swarm."
|
||||||
|
|
||||||
10
README.md
10
README.md
|
|
@ -27,6 +27,16 @@ Swarm is a distributed storage platform and content distribution service, a nati
|
||||||
|
|
||||||
Building Swarm requires Go (version 1.11 or later).
|
Building Swarm requires Go (version 1.11 or later).
|
||||||
|
|
||||||
|
To simply compile the `swarm` binary without a `GOPATH`:
|
||||||
|
|
||||||
|
$ git clone https://github.com/ethersphere/swarm
|
||||||
|
$ cd swarm
|
||||||
|
$ make swarm
|
||||||
|
|
||||||
|
You will find the binary under `./build/bin/swarm`.
|
||||||
|
|
||||||
|
To build a vendored `swarm` using `go get` you must have `GOPATH` set. Then run:
|
||||||
|
|
||||||
go get -d github.com/ethersphere/swarm
|
go get -d github.com/ethersphere/swarm
|
||||||
|
|
||||||
go install github.com/ethersphere/swarm/cmd/swarm
|
go install github.com/ethersphere/swarm/cmd/swarm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue