From 9c70be0e77c3e0b9f4a06c962203d049851b6cc5 Mon Sep 17 00:00:00 2001 From: monero-project Date: Wed, 30 Apr 2014 13:07:00 -0400 Subject: [PATCH] prompt to delete build directory on 'make clean' --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 451319b08..65b72d4e1 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,9 @@ test-release: build-release all-release: build-release clean: + @echo "WARNING: Back-up your wallet if it exists within ./build!" ; \ + read -r -p "This will destroy the build directory, continue (y/N)?: " CONTINUE; \ + [ $$CONTINUE = "y" ] || [ $$CONTINUE = "Y" ] || (echo "Exiting."; exit 1;) rm -rf build tags: