Fix installation process for basecoind from top-level folder
The make build command only works if you install the dependencies first. Previously you had to cd into examples/basecoin and run get_vendor_deps and then cd into cosmos-sdk and then run build. With this change a user can just run build in the top-level folder and the dependencies are installed automatically.
This commit is contained in:
parent
37600d2cd0
commit
9ec5f37a02
1
Makefile
1
Makefile
|
@ -18,6 +18,7 @@ gaia:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@rm -rf examples/basecoin/vendor/
|
@rm -rf examples/basecoin/vendor/
|
||||||
|
cd examples/basecoin && $(MAKE) get_vendor_deps
|
||||||
go build $(BUILD_FLAGS) -o build/basecoind ./examples/basecoin/cmd/basecoind/...
|
go build $(BUILD_FLAGS) -o build/basecoind ./examples/basecoin/cmd/basecoind/...
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
|
|
|
@ -4,7 +4,7 @@ BUILD_FLAGS = -ldflags "-X github.com/cosmos/cosmos-sdk/examples/basecoin/versio
|
||||||
all: get_tools get_vendor_deps build test
|
all: get_tools get_vendor_deps build test
|
||||||
|
|
||||||
get_tools:
|
get_tools:
|
||||||
go get github.com/Masterminds/glide
|
go get github.com/tendermint/glide
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build $(BUILD_FLAGS) -o build/basecoin ./cmd/...
|
go build $(BUILD_FLAGS) -o build/basecoin ./cmd/...
|
||||||
|
|
Loading…
Reference in New Issue