summaryrefslogtreecommitdiff
path: root/src/rebar_lfe_compiler.erl
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-01-02 14:17:59 -0700
committerDave Smith <dizzyd@dizzyd.com>2010-01-02 14:17:59 -0700
commit9c15d63191695a8121cb5566817ed2123c59567b (patch)
treedaaae1391c29f7b50d214b203ba183d684b16d88 /src/rebar_lfe_compiler.erl
parent18e1b37e6f1e81325e8ce8167a639b521a8f4726 (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.erl7
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" ++