Makefile 755 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. APP=jsone
  2. NODE=$(APP)@localhost
  3. DIALYZER_OPTS=-Werror_handling -Wrace_conditions -Wunmatched_returns
  4. all: compile xref eunit dialyze
  5. init:
  6. @./rebar get-deps compile
  7. compile:
  8. @./rebar compile skip_deps=true
  9. xref:
  10. @./rebar xref skip_deps=true
  11. clean:
  12. @./rebar clean skip_deps=true
  13. eunit:
  14. @./rebar eunit skip_deps=true
  15. edoc:
  16. @./rebar doc skip_deps=true
  17. start: compile
  18. erl -sname $(NODE) -pz ebin deps/*/ebin \
  19. -eval 'erlang:display({start_app, $(APP), application:start($(APP))}).'
  20. .dialyzer.plt:
  21. touch .dialyzer.plt
  22. dialyzer --build_plt --plt .dialyzer.plt --apps erts kernel stdlib
  23. dialyze: .dialyzer.plt compile
  24. dialyzer --plt .dialyzer.plt -r ebin $(DIALYZER_OPTS)
  25. create_app:
  26. @./rebar create-app appid=$(APP) skip_deps=true