Skip to content

Commit

Permalink
Use env variable for gopath in Makefile (cosmos#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilkumarpilli authored Jan 19, 2021
1 parent d8c752f commit 8936587
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ COMMIT := $(shell git log -1 --format='%H')
SDKCOMMIT := $(shell go list -m -u -f '{{.Version}}' github.com/cosmos/cosmos-sdk)
GAIA_VERSION := main
AKASH_VERSION := jack/update-sdk

GOPATH := $(shell go env GOPATH)
GOBIN := $(GOPATH)/bin

all: ci-lint install

###############################################################################
Expand Down Expand Up @@ -38,7 +42,7 @@ compile-clib:

install: go.sum
@echo "installing rly binary..."
@go build -mod=readonly $(BUILD_FLAGS) -o $${GOBIN-$${GOPATH-$$HOME/go}/bin}/rly main.go
@go build -mod=readonly $(BUILD_FLAGS) -o $(GOBIN)/rly main.go

###############################################################################
# Tests / CI
Expand Down

0 comments on commit 8936587

Please sign in to comment.