mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Run the preprocess again if subdirs were compiled, fixes http://bitbucket.org/basho/rebar/issue/5
This commit is contained in:
parent
317655f724
commit
59ab113f3b
1 changed files with 11 additions and 0 deletions
|
@ -287,6 +287,17 @@ process_dir(Dir, ParentConfig, Commands) ->
|
||||||
%% to change
|
%% to change
|
||||||
ok = file:set_cwd(Dir),
|
ok = file:set_cwd(Dir),
|
||||||
|
|
||||||
|
%% http://bitbucket.org/basho/rebar/issue/5
|
||||||
|
%% If the compiler ran, run the preprocess again because a new ebin dir
|
||||||
|
%% may have been produced.
|
||||||
|
case Dirs =/= [] andalso lists:member(compile, Commands) of
|
||||||
|
true ->
|
||||||
|
acc_modules(select_modules(Modules, preprocess, []),
|
||||||
|
preprocess, Config, ModuleSetFile, []);
|
||||||
|
false ->
|
||||||
|
ok
|
||||||
|
end,
|
||||||
|
|
||||||
%% Finally, process the current working directory
|
%% Finally, process the current working directory
|
||||||
?DEBUG("Commands: ~p Modules: ~p\n", [Commands, Modules]),
|
?DEBUG("Commands: ~p Modules: ~p\n", [Commands, Modules]),
|
||||||
apply_commands(Commands, Modules, UpdatedConfig, ModuleSetFile),
|
apply_commands(Commands, Modules, UpdatedConfig, ModuleSetFile),
|
||||||
|
|
Loading…
Reference in a new issue