From 69154f48851eac7c7b1902e5aaf741fea51fd5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 14 Nov 2019 22:45:47 +0100 Subject: [PATCH] Makefile: "testnetX" target cleans up by default, before starting [skip ci] --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 78efe8d90..e816912c5 100644 --- a/Makefile +++ b/Makefile @@ -70,8 +70,11 @@ clean_eth2_network_simulation_files: eth2_network_simulation: | build deps p2pd clean_eth2_network_simulation_files process_dashboard GIT_ROOT="$$PWD" tests/simulation/start.sh -testnet0 testnet1: | build deps - NIM_PARAMS="$(NIM_PARAMS)" $(ENV_SCRIPT) nim $(NIM_PARAMS) scripts/connect_to_testnet.nims $@ +testnet0: | build deps clean-testnet0 + + $(MAKE) testnet0-no-clean + +testnet1: | build deps clean-testnet1 + + $(MAKE) testnet1-no-clean clean-testnet0: rm -rf build/data/testnet0 @@ -79,5 +82,11 @@ clean-testnet0: clean-testnet1: rm -rf build/data/testnet1 +testnet0-no-clean: | build deps + NIM_PARAMS="$(NIM_PARAMS)" $(ENV_SCRIPT) nim $(NIM_PARAMS) scripts/connect_to_testnet.nims testnet0 + +testnet1-no-clean: | build deps + NIM_PARAMS="$(NIM_PARAMS)" $(ENV_SCRIPT) nim $(NIM_PARAMS) scripts/connect_to_testnet.nims testnet1 + clean: | clean-common rm -rf build/{$(TOOLS_CSV),all_tests,*_node}