diff options
Diffstat (limited to 'core/deps.mk')
-rw-r--r-- | core/deps.mk | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/core/deps.mk b/core/deps.mk index dc5e6e6..b9b6015 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -206,10 +206,14 @@ define dep_autopatch_rebar.erl end end(), fun() -> - First = case lists:keyfind(erl_first_files, 1, Conf) of false -> []; {_, Files} -> - Names = [[" ", begin "lre." ++ Elif = lists:reverse(F), lists:reverse(Elif) end] - || "src/" ++ F <- Files], - Write(io_lib:format("COMPILE_FIRST +=~s\n", [Names])) + case lists:keyfind(erl_first_files, 1, Conf) of + false -> ok; + {_, Files} -> + Names = [[" ", case lists:reverse(F) of + "lre." ++ Elif -> lists:reverse(Elif); + Elif -> lists:reverse(Elif) + end] || "src/" ++ F <- Files], + Write(io_lib:format("COMPILE_FIRST +=~s\n", [Names])) end end(), FindFirst = fun(F, Fd) -> |