2012-06-18 15:57:59 +00:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
|
|
|
PROJECT = jesse
|
|
|
|
|
|
|
|
DIALYZER = dialyzer
|
|
|
|
REBAR = ./rebar
|
|
|
|
|
|
|
|
all: app
|
|
|
|
|
|
|
|
# Application.
|
|
|
|
|
|
|
|
deps:
|
|
|
|
@$(REBAR) get-deps
|
|
|
|
|
|
|
|
app: deps
|
|
|
|
@$(REBAR) compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@$(REBAR) clean
|
|
|
|
rm -f test/*.beam
|
|
|
|
rm -f erl_crash.dump
|
|
|
|
|
|
|
|
docs: clean-docs
|
|
|
|
@$(REBAR) doc skip_deps=true
|
|
|
|
|
|
|
|
clean-docs:
|
|
|
|
rm -f doc/*.css
|
|
|
|
rm -f doc/*.html
|
|
|
|
rm -f doc/*.png
|
|
|
|
rm -f doc/edoc-info
|
|
|
|
|
|
|
|
# Tests.
|
|
|
|
|
2013-02-05 11:22:48 +00:00
|
|
|
deps/jiffy:
|
|
|
|
@$(REBAR) -C rebar.tests.config get-deps
|
|
|
|
cd deps/jiffy && $(REBAR) compile
|
2012-06-18 15:57:59 +00:00
|
|
|
|
2013-02-23 08:04:51 +00:00
|
|
|
submodules:
|
|
|
|
git submodule update --init
|
|
|
|
|
|
|
|
test: clean deps/jiffy submodules app eunit ct
|
2012-06-18 15:57:59 +00:00
|
|
|
|
2013-02-05 11:22:48 +00:00
|
|
|
eunit:
|
|
|
|
@$(REBAR) -C rebar.tests.config eunit skip_deps=true
|
2012-06-18 15:57:59 +00:00
|
|
|
|
2013-02-05 11:22:48 +00:00
|
|
|
ct:
|
|
|
|
@$(REBAR) -C rebar.tests.config ct skip_deps=true suites=jesse_tests_draft3
|
2012-06-18 15:57:59 +00:00
|
|
|
|
|
|
|
# Dialyzer.
|
|
|
|
|
|
|
|
build-plt:
|
|
|
|
@$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
|
|
|
|
--apps kernel stdlib sasl
|
|
|
|
|
|
|
|
dialyze:
|
|
|
|
@$(DIALYZER) --src src --plt .$(PROJECT).plt --no_native \
|
2013-02-19 17:59:38 +00:00
|
|
|
-Werror_handling -Wrace_conditions #-Wunmatched_returns -Wunderspecs
|