summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-01-04 05:47:45 -0700
committerDave Smith <dizzyd@dizzyd.com>2010-01-04 05:47:45 -0700
commit51f6906da9f765a116c261b63becd1c2e758ae80 (patch)
tree0b65d63959cc440837ae0634936074417914ca09
parent42647f4c22e6fe1ddcafa638089dc5bc79e44c04 (diff)
Make sure to create dir structure for output bams
-rw-r--r--src/rebar_erlc_compiler.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 2549030..80adc4e 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -124,6 +124,7 @@ internal_erl_compile(Source, Config, Outdir) ->
%% Construct the target filename
Target = filename:join([Outdir | string:tokens(Module, ".")]) ++ ".beam",
+ ok = filelib:ensure_dir(Target),
%% If the file needs compilation, based on last mod date of includes or
%% the target,