forked from cerc-io/laconicd-deprecated
fix Makefile (#448)
* fix makefile error caused by DETECTED_OS * add `clean testnet` and `reset testnet` Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
parent
7e430be1ad
commit
c0b6b85eae
23
Makefile
23
Makefile
@ -28,7 +28,6 @@ SIMAPP = github.com/cosmos/ethermint/app
|
|||||||
RUNSIM = $(BINDIR)/runsim
|
RUNSIM = $(BINDIR)/runsim
|
||||||
LEDGER_ENABLED ?= true
|
LEDGER_ENABLED ?= true
|
||||||
|
|
||||||
ifeq ($(DETECTED_OS),)
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
DETECTED_OS := windows
|
DETECTED_OS := windows
|
||||||
else
|
else
|
||||||
@ -39,7 +38,7 @@ ifeq ($(DETECTED_OS),)
|
|||||||
DETECTED_OS := linux
|
DETECTED_OS := linux
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
export DETECTED_OS
|
||||||
export GO111MODULE = on
|
export GO111MODULE = on
|
||||||
|
|
||||||
# process build tags
|
# process build tags
|
||||||
@ -353,4 +352,24 @@ endif
|
|||||||
localnet-stop:
|
localnet-stop:
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|
||||||
|
# clean testnet
|
||||||
|
localnet-clean:
|
||||||
|
docker-compose down
|
||||||
|
sudo rm -rf build/*
|
||||||
|
|
||||||
|
# reset testnet
|
||||||
|
localnet-unsafe-reset:
|
||||||
|
docker-compose down
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
@docker run --rm -v $(CURDIR)/build\ethermint\Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node0/ethermintd"
|
||||||
|
@docker run --rm -v $(CURDIR)/build\ethermint\Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node1/ethermintd"
|
||||||
|
@docker run --rm -v $(CURDIR)/build\ethermint\Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node2/ethermintd"
|
||||||
|
@docker run --rm -v $(CURDIR)/build\ethermint\Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node3/ethermintd"
|
||||||
|
else
|
||||||
|
@docker run --rm -v $(CURDIR)/build:/ethermint:Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node0/ethermintd"
|
||||||
|
@docker run --rm -v $(CURDIR)/build:/ethermint:Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node1/ethermintd"
|
||||||
|
@docker run --rm -v $(CURDIR)/build:/ethermint:Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node2/ethermintd"
|
||||||
|
@docker run --rm -v $(CURDIR)/build:/ethermint:Z ethermintd/node "ethermintd unsafe-reset-all --home=/ethermint/node3/ethermintd"
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: build-docker-local-ethermint localnet-start localnet-stop
|
.PHONY: build-docker-local-ethermint localnet-start localnet-stop
|
||||||
|
Loading…
Reference in New Issue
Block a user