summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0239a6c..9347659 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@ build all:
clean:
-rm ebin/*.beam
release:
+ test ! -f rel/db/treesize || \
+ test $$(cat rel/db/treesize) = 0 && \
+ rm -rf rel
rm -rf rel
mkdir rel
./makerelease.erl