Makefile: "testnetX" target cleans up by default, before starting [skip ci]

This commit is contained in:
Ștefan Talpalaru 2019-11-14 22:45:47 +01:00
parent a373a86642
commit 69154f4885
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 11 additions and 2 deletions

View File

@ -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}