diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-01-02 14:17:59 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-01-02 14:17:59 -0700 |
commit | 9c15d63191695a8121cb5566817ed2123c59567b (patch) | |
tree | daaae1391c29f7b50d214b203ba183d684b16d88 /src/rebar_lfe_compiler.erl | |
parent | 18e1b37e6f1e81325e8ce8167a639b521a8f4726 (diff) |
Refactor of compilation logic to enable support for package modules and provide better modularity/reusability for other systems
Diffstat (limited to 'src/rebar_lfe_compiler.erl')
-rw-r--r-- | src/rebar_lfe_compiler.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl index 5447028..78a2c3d 100644 --- a/src/rebar_lfe_compiler.erl +++ b/src/rebar_lfe_compiler.erl @@ -38,15 +38,16 @@ compile(Config, _AppFile) -> FirstFiles = rebar_config:get_list(Config, lfe_first_files, []), - rebar_erlc_compiler:do_compile(Config, "src/*.lfe", "ebin", ".lfe", ".beam", - undefined, fun compile_lfe/2, FirstFiles). + rebar_base_compiler:run(Config, "src", ".lfe", "ebin", ".beam", + FirstFiles, + fun compile_lfe/3, []). %% =================================================================== %% Internal functions %% =================================================================== -compile_lfe(Source, Config) -> +compile_lfe(Source, _Target, Config) -> case code:which(lfe_comp) of non_existing -> ?CONSOLE("~n===============================================~n" ++ |