Makefile 976 B

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