Makefile 530 B

12345678910111213141516171819202122232425262728293031
  1. # See LICENSE for licensing information.
  2. DIALYZER = dialyzer
  3. REBAR = rebar
  4. all: app
  5. app:
  6. @$(REBAR) compile
  7. clean:
  8. @$(REBAR) clean
  9. rm -f test/*.beam
  10. rm -f erl_crash.dump
  11. tests: clean app eunit ct
  12. eunit:
  13. @$(REBAR) eunit
  14. ct:
  15. @$(REBAR) ct
  16. build-plt:
  17. @$(DIALYZER) --build_plt --output_plt .cowboy_dialyzer.plt \
  18. --apps kernel stdlib sasl inets crypto public_key ssl
  19. dialyze:
  20. @$(DIALYZER) --src src --plt .cowboy_dialyzer.plt \
  21. -Wbehaviours -Werror_handling \
  22. -Wrace_conditions -Wunmatched_returns # -Wunderspecs