aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorKamil Kieliszczyk <[email protected]>2014-02-22 10:55:07 +0100
committerKamil Kieliszczyk <[email protected]>2014-02-22 10:55:07 +0100
commit825af962b2d19e67610839ab2b6ac71f16674e7b (patch)
tree2b830ff742050ff6651bdb3f036ee313e5dd64a2 /erlang.mk
parent798be5a31f133eb05e13334387ccd90b42861069 (diff)
downloaderlang.mk-825af962b2d19e67610839ab2b6ac71f16674e7b.tar.gz
erlang.mk-825af962b2d19e67610839ab2b6ac71f16674e7b.tar.bz2
erlang.mk-825af962b2d19e67610839ab2b6ac71f16674e7b.zip
Clean release based on output dir from relx in-line options
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/erlang.mk b/erlang.mk
index 093a269..dbae2fd 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -60,6 +60,11 @@ export RELX
RELX_URL ?= https://github.com/erlware/relx/releases/download/v0.6.0/relx
RELX_OPTS ?=
+RELX_OUTPUT_DIR ?= _rel
+
+ifneq ($(firstword $(subst -o,,$(RELX_OPTS))),)
+ RELX_OUTPUT_DIR = $(firstword $(subst -o,,$(RELX_OPTS)))
+endif
define get_relx
wget -O $(RELX) $(RELX_URL) || rm $(RELX)
@@ -73,7 +78,7 @@ $(RELX):
@$(call get_relx)
clean-rel:
- @rm -rf _rel
+ $(gen_verbose) rm -rf $(RELX_OUTPUT_DIR)
endif