Makefile 747 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. inttests: clean app eunit intct
  15. eunit:
  16. @$(REBAR) eunit skip_deps=true
  17. ct:
  18. @$(REBAR) ct skip_deps=true suites=http,proper,ws
  19. intct:
  20. @$(REBAR) ct skip_deps=true suites=http,proper,ws,autobahn
  21. build-plt:
  22. @$(DIALYZER) --build_plt --output_plt .cowboy_dialyzer.plt \
  23. --apps kernel stdlib sasl inets crypto public_key ssl
  24. dialyze:
  25. @$(DIALYZER) --src src --plt .cowboy_dialyzer.plt --no_native \
  26. -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
  27. docs:
  28. @$(REBAR) doc skip_deps=true