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
29
Makefile
29
Makefile
@ -28,18 +28,17 @@ 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
|
||||||
UNAME_S = $(shell uname -s)
|
UNAME_S = $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
DETECTED_OS := mac
|
DETECTED_OS := mac
|
||||||
else
|
else
|
||||||
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