summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_erlc_compiler.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 27bf09b..6b51642 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -355,8 +355,7 @@ internal_erl_compile(Config, Dir, Module, OutDir, ErlOpts) ->
end.
target_base(OutDir, Source) ->
- Module = filename:basename(Source, ".erl"),
- filename:join([OutDir|string:tokens(Module, ".")]).
+ filename:join(OutDir, filename:basename(Source, ".erl")).
-spec compile_mib(file:filename(), file:filename(),
rebar_state:t()) -> 'ok'.