1234567891011121314151617181920212223242526272829303132333435363738 |
- APP=jsone
- NODE=$(APP)@localhost
- 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 -sname $(NODE) -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
|