Makefile: Custom gateway location for storj-sim
When running make install-sim we currently create a .build directory and init a go module there. This change allows a user to pass in a custom location for this to occur. If nothing is passed in it defaults to current behavior. Change-Id: I432dfc7bae412d8a8454a6b8b3dffece84a41147
This commit is contained in:
parent
35c61bd0e2
commit
db6b64c2ba
11
Makefile
11
Makefile
@ -73,6 +73,11 @@ build-storagenode-npm:
|
|||||||
|
|
||||||
##@ Simulator
|
##@ Simulator
|
||||||
|
|
||||||
|
# Allow the caller to set GATEWAYPATH if desired. This controls where the new
|
||||||
|
# go module is created to install the specific gateway version.
|
||||||
|
ifndef GATEWAYPATH
|
||||||
|
GATEWAYPATH=.build/gateway-tmp
|
||||||
|
endif
|
||||||
.PHONY: install-sim
|
.PHONY: install-sim
|
||||||
install-sim: ## install storj-sim
|
install-sim: ## install storj-sim
|
||||||
@echo "Running ${@}"
|
@echo "Running ${@}"
|
||||||
@ -86,9 +91,9 @@ install-sim: ## install storj-sim
|
|||||||
storj.io/storj/cmd/certificates
|
storj.io/storj/cmd/certificates
|
||||||
|
|
||||||
## install exact version of storj/gateway
|
## install exact version of storj/gateway
|
||||||
mkdir -p .build/gateway-tmp
|
mkdir -p ${GATEWAYPATH}
|
||||||
-cd .build/gateway-tmp && go mod init gatewaybuild
|
-cd ${GATEWAYPATH} && go mod init gatewaybuild
|
||||||
cd .build/gateway-tmp && GO111MODULE=on go get storj.io/gateway@latest
|
cd ${GATEWAYPATH} && GO111MODULE=on go get storj.io/gateway@latest
|
||||||
|
|
||||||
##@ Test
|
##@ Test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user