From d34071864a40edf423427a40da280d234eac2891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 18 May 2015 07:40:56 +0300 Subject: Fix issue with first files detection --- core/deps.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/deps.mk') diff --git a/core/deps.mk b/core/deps.mk index ade91a5..131e3b9 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -221,9 +221,9 @@ define dep_autopatch_rebar.erl FindFirst(FindFirst, Fd) end || F <- ErlFiles])), First = lists:flatten([begin - {ok, Fd} = file:open("$(DEPS_DIR)/$(1)/src/" ++ atom_to_list(F) ++ ".erl", [read]), + {ok, Fd} = file:open("$(DEPS_DIR)/$(1)/src/" ++ atom_to_list(M) ++ ".erl", [read]), FindFirst(FindFirst, Fd) - end || F <- First0]) ++ First0, + end || M <- First0, lists:member("$(DEPS_DIR)/$(1)/src/" ++ atom_to_list(M) ++ ".erl", ErlFiles)]) ++ First0, Write(["COMPILE_FIRST +=", [[" ", atom_to_list(M)] || M <- First, lists:member("$(DEPS_DIR)/$(1)/src/" ++ atom_to_list(M) ++ ".erl", ErlFiles)], "\n"]) end(), -- cgit v1.2.3