Makefile 614 B

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