summaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-12-02 15:53:12 +0100
committerLoïc Hoguin <[email protected]>2013-12-02 15:53:12 +0100
commit5bf494144cf4f86e85cd80bfd8c7aa495a4e2209 (patch)
treea9fe09e955a687f759ba8454d384aeef302b51a9 /erlang.mk
parent47b13df5bdc01ecf6ec8a79dd2ec4e7393b22923 (diff)
downloadbullet-5bf494144cf4f86e85cd80bfd8c7aa495a4e2209.tar.gz
bullet-5bf494144cf4f86e85cd80bfd8c7aa495a4e2209.tar.bz2
bullet-5bf494144cf4f86e85cd80bfd8c7aa495a4e2209.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 \