From 9b76f88058b30b490dc99ffaa211d92b94a095bf Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 3 Nov 2014 13:39:47 +0100 Subject: Protect rel/db when making 'release'. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') 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 -- cgit v1.1