Make make localnet command idempotent

Sometimes when running setup something goes wrong and the ./dao-state
dir is still hanging around, requiring manual cleanup nad preventing from simply
re-running the command.
This commit is contained in:
Justin Carter 2019-11-30 08:30:22 +01:00
parent 650c5894db
commit e3a3fb5f1c
No known key found for this signature in database
GPG Key ID: 4B8BB0D3F5018030

View File

@ -114,6 +114,7 @@ clean-build:
clean-localnet:
rm -rf $(STATE_DIR)
rm -rf ./dao-setup
# Build all Bisq binaries and generate the shell scripts used to run
# them in the targets below
@ -123,7 +124,7 @@ build:
# Unpack and customize a Bitcoin regtest node and Alice and Bob Bisq
# nodes that have been preconfigured with a blockchain containing the
# BSQ genesis transaction
localnet:
localnet: clean-localnet
# Unpack the old dao-setup.zip and move things around for more concise
# and intuitive naming. This is a temporary measure until we clean these
# resources up more thoroughly.