Browse Source

Set ERL_LIBS to $(DEPS_DIR) rather than `deps`

This solves a recursion problem when compiling deeper recursive
makefile structures. All dependencies are pulled to the top-level
dependencies directory by virtue of DEPS_DIR, but the recursive make
calls to erlc fails since the value is hard-coded.
Jesper Louis Andersen 12 years ago
parent
commit
b32b9c3c44
1 changed files with 2 additions and 2 deletions
  1. 2 2
      erlang.mk

+ 2 - 2
erlang.mk

@@ -65,8 +65,8 @@ app: ebin/$(PROJECT).app
 		> ebin/$(PROJECT).app
 
 define compile_erl
-	$(erlc_verbose) ERL_LIBS=deps erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
-		-I include/ $(COMPILE_FIRST_PATHS) $(1)
+	$(erlc_verbose) ERL_LIBS=$(DEPS_DIR) erlc -v $(ERLC_OPTS) -o ebin/ \
+		-pa ebin/ -I include/ $(COMPILE_FIRST_PATHS) $(1)
 endef
 
 define compile_xyrl