Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # See LICENSE for licensing information.
  2. PROJECT = cowboy
  3. DIALYZER = dialyzer
  4. REBAR = rebar
  5. all: app
  6. # Application.
  7. deps/ranch:
  8. @$(REBAR) get-deps
  9. app: deps/ranch
  10. @$(REBAR) compile
  11. clean:
  12. @$(REBAR) clean
  13. rm -f test/*.beam
  14. rm -f erl_crash.dump
  15. docs: clean-docs
  16. @$(REBAR) doc skip_deps=true
  17. clean-docs:
  18. rm -f doc/*.css
  19. rm -f doc/*.html
  20. rm -f doc/*.png
  21. rm -f doc/edoc-info
  22. # Tests.
  23. deps/proper:
  24. @$(REBAR) -C rebar.tests.config get-deps
  25. cd deps/proper && $(REBAR) compile
  26. tests: clean deps/proper app eunit ct
  27. inttests: clean deps/proper app eunit intct
  28. eunit:
  29. @$(REBAR) -C rebar.tests.config eunit skip_deps=true
  30. ct:
  31. @$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,proper,ws
  32. intct:
  33. @$(REBAR) -C rebar.tests.config ct skip_deps=true suites=http,proper,ws,autobahn
  34. # Dialyzer.
  35. build-plt:
  36. @$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
  37. --apps kernel stdlib sasl inets crypto public_key ssl deps/*
  38. dialyze:
  39. @$(DIALYZER) --src src --plt .$(PROJECT).plt --no_native \
  40. -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs