forked from cybergrind/rebar-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar_compiler.erl
38 lines (29 loc) · 1.14 KB
/
rebar_compiler.erl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%%%----------------------------------------------------------------------
%%% @author {{author_name}} <{{author_email}}>
%%% @copyright {{copyright_year}} {{author_name}}
%%% @doc rebar compiler to {{description}}
%%% @end
%%%----------------------------------------------------------------------
-module({{name}}).
-author('{{author_name}} <{{author_email}}>').
-export([compile/2]).
-ifdef(TEST).
-compile(export_all).
-endif.
-include_lib("rebar/include/rebar.hrl").
%% ===================================================================
%% Public API
%% ===================================================================
%% @spec compile(Config, AppFile) -> ok | skipped
%% @doc Compiles files compiler is *interested* in.
compile(Config, _AppFile) ->
ok
%% ===================================================================
%% Internal functions
%% ===================================================================
%% @private
%% @doc returns default value for matching compiler option
%% @end
%% TODO: Add clauses to default/1 below for each option with a default.
default(CompilerOpt) -> "".
%% TODO: Add other internal functions below here...