aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-12-02 15:52:50 +0100
committerLoïc Hoguin <[email protected]>2013-12-02 15:52:50 +0100
commit743aeb3692cc8b5b9c5b9ab2e1163d624b8b0ccf (patch)
tree16da644331d5dfdc29ac4afd3dbddb40d3e55f9d /erlang.mk
parent194ce06ed8cc3a855dfebf9dd106be758a4a220e (diff)
downloadranch-743aeb3692cc8b5b9c5b9ab2e1163d624b8b0ccf.tar.gz
ranch-743aeb3692cc8b5b9c5b9ab2e1163d624b8b0ccf.tar.bz2
ranch-743aeb3692cc8b5b9c5b9ab2e1163d624b8b0ccf.zip
Update erlang.mk again
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/erlang.mk b/erlang.mk
index 0dadfbb..107cdd5 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -90,7 +90,13 @@ ALL_TEST_DEPS_DIRS = $(addprefix $(DEPS_DIR)/,$(TEST_DEPS))
# Application.
-ERL_LIBS ?= $(DEPS_DIR)
+ifeq ($(filter $(DEPS_DIR),$(subst :, ,$(ERL_LIBS))),)
+ifeq ($(ERL_LIBS),)
+ ERL_LIBS = $(DEPS_DIR)
+else
+ ERL_LIBS := $(ERL_LIBS):$(DEPS_DIR)
+endif
+endif
export ERL_LIBS
ERLC_OPTS ?= -Werror +debug_info +warn_export_all +warn_export_vars \