From 51f6906da9f765a116c261b63becd1c2e758ae80 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 4 Jan 2010 05:47:45 -0700 Subject: [PATCH] Make sure to create dir structure for output bams --- src/rebar_erlc_compiler.erl | 1 + 1 file changed, 1 insertion(+) 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,