summaryrefslogtreecommitdiff
path: root/src/rebar_app_utils.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_app_utils.erl')
-rw-r--r--src/rebar_app_utils.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl
index a2484e1..bbcbaf4 100644
--- a/src/rebar_app_utils.erl
+++ b/src/rebar_app_utils.erl
@@ -75,7 +75,10 @@ is_app_src(Filename) ->
Filename =/= filename:rootname(Filename, ".app.src").
app_src_to_app(Filename) ->
- filename:join("ebin", filename:basename(Filename, ".app.src") ++ ".app").
+ Path = filename:join(lists:droplast(filename:split(filename:dirname(Filename)))),
+ AppFile = filename:join([Path, "ebin", filename:basename(Filename, ".app.src") ++ ".app"]),
+ filelib:ensure_dir(AppFile),
+ AppFile.
app_name(Config, AppFile) ->
case load_app_file(Config, AppFile) of