summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-11-03 13:39:47 +0100
committerLinus Nordberg <linus@nordberg.se>2014-11-03 13:42:28 +0100
commit9b76f88058b30b490dc99ffaa211d92b94a095bf (patch)
treec91a3b31ce19600e4ddad1e1d3336fd53450f9e4 /Makefile
parentd79c260758e7544dd46de2adfad85d1c0bee859b (diff)
Protect rel/db when making 'release'.
Diffstat (limited to 'Makefile')
-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