Browse Source

Add deps to ERL_LIBS when compiling

This allows erlc to find behaviours defined by other applications.
Loïc Hoguin 12 years ago
parent
commit
ff7f47fe8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      erlang.mk

+ 1 - 1
erlang.mk

@@ -56,7 +56,7 @@ app: ebin/$(PROJECT).app
 
 ebin/$(PROJECT).app: src/*.erl
 	@mkdir -p ebin/
-	$(erlc_verbose) erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
+	$(erlc_verbose) ERL_LIBS=deps erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
 		$(COMPILE_FIRST_PATHS) $?
 
 clean: