12345678910111213141516171819202122232425262728293031323334353637 |
- APP=jsone
- DIALYZER_OPTS=-Werror_handling -Wrace_conditions -Wunmatched_returns
- all: compile xref eunit dialyze
- init:
- @./rebar get-deps compile
- compile:
- @./rebar compile skip_deps=true
- xref:
- @./rebar xref skip_deps=true
- clean:
- @./rebar clean skip_deps=true
- eunit:
- @./rebar eunit skip_deps=true
- edoc:
- @./rebar doc skip_deps=true
- start: compile
- erl -pz ebin deps/*/ebin \
- -eval 'erlang:display({start_app, $(APP), application:start($(APP))}).'
- .dialyzer.plt:
- touch .dialyzer.plt
- dialyzer --build_plt --plt .dialyzer.plt --apps erts kernel stdlib
- dialyze: .dialyzer.plt compile
- dialyzer --plt .dialyzer.plt -r ebin $(DIALYZER_OPTS)
- create_app:
- @./rebar create-app appid=$(APP) skip_deps=true
|