-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathrebar.config
30 lines (26 loc) · 940 Bytes
/
rebar.config
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
%% -*- erlang -*-
%% Config file for cl-application
{deps, []}.
{erl_opts, [debug_info, fail_on_warning]}.
{provider_hooks, [{post, [{ct, edoc}, {ct, dialyzer}]}]}.
{pre_hooks,
[{"(linux|darwin|solaris|win32)", compile, "make -C c_src"},
{"(freebsd)", compile, "gmake -C c_src"}
]}.
%% Assumes bash (even on windows)
{post_hooks,
[%% Temporary hack for equal usage on rebar and rebar3
{"(linux|darwin|solaris|freebsd)", compile,
"cp _build/default/lib/cl/ebin/* ebin 2> /dev/null | :"},
{"win32", compile,
"xcopy _build\\default\\lib\\cl\\ebin\\*.* ebin\\ /c /q /i /y | echo ok"},
%%
{"", clean, "rm -f test/*.beam"},
{"", clean, "rm -rf logs"},
{"", clean, "rm -rf doc/*.html"},
{"", clean, "rm -rf ebin/*"},
{"(linux|darwin|solaris|win32)", clean, "make -C c_src clean"},
{"(freebsd)", clean, "gmake -C c_src clean"}
]}.
%% Make old-rebar avoid building cl_drv.so
{port_specs, [{"priv/cl_nif.so", []}]}.