From e3a3fb5f1c1af54ebf7b827b653e1fa271270746 Mon Sep 17 00:00:00 2001 From: Justin Carter Date: Sat, 30 Nov 2019 08:30:22 +0100 Subject: [PATCH] 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. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9ea65f2862..7d79d65f7dd 100644 --- a/Makefile +++ b/Makefile @@ -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.