summaryrefslogtreecommitdiff
path: root/src/rebar_lfe_compiler.erl
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2013-02-26 07:22:47 -0800
committerDave Smith <dizzyd@dizzyd.com>2013-02-26 07:22:47 -0800
commit174c69022a0af3341678d078231c66d60d8cb447 (patch)
tree108c21849e5acf68e0e5f621bc9132a960b6dea7 /src/rebar_lfe_compiler.erl
parent78fa8fc3d5215e076284b37394e5ca149e945997 (diff)
parent4b8c81fb53e2caaa74a33d5b62664a67427a7bbf (diff)
Merge pull request #22 from tuncer/help
Implement 'rebar help CMD1 CMD2' and extend common 'rebar help' msg
Diffstat (limited to 'src/rebar_lfe_compiler.erl')
-rw-r--r--src/rebar_lfe_compiler.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl
index d288ca5..2a047d8 100644
--- a/src/rebar_lfe_compiler.erl
+++ b/src/rebar_lfe_compiler.erl
@@ -30,6 +30,9 @@
-export([compile/2]).
+%% for internal use only
+-export([info/2]).
+
-include("rebar.hrl").
%% ===================================================================
@@ -45,6 +48,14 @@ compile(Config, _AppFile) ->
%% Internal functions
%% ===================================================================
+info(help, compile) ->
+ ?CONSOLE(
+ "Build Lisp Flavoured Erlang (*.lfe) sources.~n"
+ "~n"
+ "Valid rebar.config options:~n"
+ " erl_opts is reused.'~n",
+ []).
+
compile_lfe(Source, _Target, Config) ->
case code:which(lfe_comp) of
non_existing ->