diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-08-30 08:03:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 08:03:11 -0400 |
commit | af3d3b73c0676f061c7c26a628059f48213f135d (patch) | |
tree | 153c72f1a6a04f66d3fc0dd4408ef3786d45dbb3 /src | |
parent | 92d3fa9272582eea6ce77faab19fb74be0d4c6ce (diff) | |
parent | 7095382e2c769f43214c32c4cb7f357b15ee095c (diff) |
Merge pull request #1619 from suexcxine/master
Recompile when include files change in non-default directories
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_erlc_compiler.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 94cbe13..c588a25 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -787,8 +787,9 @@ outdir(RebarOpts) -> proplists:get_value(outdir, ErlOpts, ?DEFAULT_OUTDIR). include_abs_dirs(ErlOpts, BaseDir) -> - InclDirs = ["include"|proplists:get_all_values(i, ErlOpts)], - lists:map(fun(Incl) -> filename:join([BaseDir, Incl]) end, InclDirs). + ErlOptIncludes = proplists:get_all_values(i, ErlOpts), + InclDirs = lists:map(fun(Incl) -> filename:absname(Incl) end, ErlOptIncludes), + [filename:join([BaseDir, "include"])|InclDirs]. dir_recursive(Opts, Dir, CompileOpts) when is_list(CompileOpts) -> case proplists:get_value(recursive,CompileOpts) of |