@ -0,0 +1,13 @@ | |||||
Copyright (c) 2012, Magnus Klaar <klaar@ninenines.eu> | |||||
Permission to use, copy, modify, and/or distribute this software for any | |||||
purpose with or without fee is hereby granted, provided that the above | |||||
copyright notice and this permission notice appear in all copies. | |||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
@ -0,0 +1,37 @@ | |||||
# See LICENSE for licensing information. | |||||
DIALYZER = dialyzer | |||||
REBAR = rebar | |||||
APPNAME = goldrush | |||||
all: app | |||||
app: deps | |||||
@$(REBAR) compile | |||||
deps: | |||||
@$(REBAR) get-deps | |||||
clean: | |||||
@$(REBAR) clean | |||||
rm -f test/*.beam | |||||
rm -f erl_crash.dump | |||||
tests: clean app eunit ct | |||||
eunit: | |||||
@$(REBAR) eunit skip_deps=true | |||||
ct: | |||||
@$(REBAR) ct skip_deps=true | |||||
build-plt: | |||||
@$(DIALYZER) --build_plt --output_plt .$(APPNAME)_dialyzer.plt \ | |||||
--apps kernel stdlib sasl inets crypto public_key ssl | |||||
dialyze: | |||||
@$(DIALYZER) --src src --plt .$(APPNAME)_dialyzer.plt --no_native \ | |||||
-Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs | |||||
docs: | |||||
@$(REBAR) doc skip_deps=true |
@ -0,0 +1,8 @@ | |||||
{cover_enabled, true}. | |||||
{eunit_opts, [{report, {eunit_surefire, [{dir, "."}]}}]}. | |||||
{erl_opts, [ | |||||
%% bin_opt_info, | |||||
%% warn_missing_spec, | |||||
warnings_as_errors, | |||||
warn_export_all | |||||
]}. |