diff options
author | Loïc Hoguin <[email protected]> | 2015-05-18 07:40:56 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-18 07:40:56 +0300 |
commit | d34071864a40edf423427a40da280d234eac2891 (patch) | |
tree | 6379bc51f88ffece153080d9d4e50ed5aca72bf1 /core | |
parent | 34df23e6ab88b6bca682a9385d7661a12c61d717 (diff) | |
download | erlang.mk-d34071864a40edf423427a40da280d234eac2891.tar.gz erlang.mk-d34071864a40edf423427a40da280d234eac2891.tar.bz2 erlang.mk-d34071864a40edf423427a40da280d234eac2891.zip |
Fix issue with first files detection
Diffstat (limited to 'core')
-rw-r--r-- | core/deps.mk | 4 |
1 files changed, 2 insertions, 2 deletions
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(), |