aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-06-07 00:57:21 +0300
committerLoïc Hoguin <[email protected]>2015-06-07 00:57:21 +0300
commit4b6b623278a387d275b3a93da158f77b46de0d43 (patch)
tree651ff849e1f56e3e0904376ac736c2240bfe5cac /core/deps.mk
parentf25bcef20600e4d0390cf735a2c96531f862ae63 (diff)
downloaderlang.mk-4b6b623278a387d275b3a93da158f77b46de0d43.tar.gz
erlang.mk-4b6b623278a387d275b3a93da158f77b46de0d43.tar.bz2
erlang.mk-4b6b623278a387d275b3a93da158f77b46de0d43.zip
Handle erl_first_files with missing extension
Makes lasp and nkbase work.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk12
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) ->