aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-07-02 19:07:21 +0200
committerLoïc Hoguin <[email protected]>2013-07-02 19:07:21 +0200
commitc62cedbb530a629f9be7ff84630035eede9506b6 (patch)
tree66c1e7e136a83a02195590efca1ef34461e5319a
parent91a4ff4a58449256d30f954b89447fdd1a4d7d21 (diff)
downloaderlang.mk-c62cedbb530a629f9be7ff84630035eede9506b6.tar.gz
erlang.mk-c62cedbb530a629f9be7ff84630035eede9506b6.tar.bz2
erlang.mk-c62cedbb530a629f9be7ff84630035eede9506b6.zip
Add support for rebar powered deps
Sets a newly repaired environment variable that rebar checks to determine the deps folder, REBAR_DEPS_DIR. This way rebar can now use the erlang.mk deps folder for its own deps. This is of course incompatible with all rebar versions before https://github.com/rebar/rebar/commit/620c4b01c6e59d47e92ea069f8510b8cb482ebae but compatibility should increase with repositories getting a newer rebar.
-rw-r--r--erlang.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/erlang.mk b/erlang.mk
index c6445d0..960318e 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -36,6 +36,9 @@ gen_verbose = $(gen_verbose_$(V))
DEPS_DIR ?= $(CURDIR)/deps
export DEPS_DIR
+REBAR_DEPS_DIR = $(DEPS_DIR)
+export REBAR_DEPS_DIR
+
ALL_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(DEPS))
ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))