|
@ -401,7 +401,7 @@ compile_xrl_yrl(Config, Source, Target, Opts, Mod) -> |
|
|
Dir = rebar_state:dir(Config), |
|
|
Dir = rebar_state:dir(Config), |
|
|
Opts1 = [{includefile, filename:join(Dir, I)} || {includefile, I} <- Opts, |
|
|
Opts1 = [{includefile, filename:join(Dir, I)} || {includefile, I} <- Opts, |
|
|
filename:pathtype(I) =:= relative], |
|
|
filename:pathtype(I) =:= relative], |
|
|
case filelib:last_modified(Source) > filelib:last_modified(Target) of |
|
|
|
|
|
|
|
|
case needs_compile(Source, Target) of |
|
|
true -> |
|
|
true -> |
|
|
case Mod:file(Source, Opts1 ++ [{return, true}]) of |
|
|
case Mod:file(Source, Opts1 ++ [{return, true}]) of |
|
|
{ok, _} -> |
|
|
{ok, _} -> |
|
@ -416,6 +416,9 @@ compile_xrl_yrl(Config, Source, Target, Opts, Mod) -> |
|
|
skipped |
|
|
skipped |
|
|
end. |
|
|
end. |
|
|
|
|
|
|
|
|
|
|
|
needs_compile(Source, Target) -> |
|
|
|
|
|
filelib:last_modified(Source) > filelib:last_modified(Target). |
|
|
|
|
|
|
|
|
gather_src([], Srcs) -> |
|
|
gather_src([], Srcs) -> |
|
|
Srcs; |
|
|
Srcs; |
|
|
gather_src([Dir|Rest], Srcs) -> |
|
|
gather_src([Dir|Rest], Srcs) -> |
|
|