Makefile 805 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # See LICENSE for licensing information.
  2. PROJECT = ranch
  3. DIALYZER = dialyzer
  4. REBAR = rebar
  5. all: app
  6. # Application.
  7. deps:
  8. @$(REBAR) get-deps
  9. app: deps
  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. tests: clean app eunit ct
  24. eunit:
  25. @$(REBAR) -C rebar.tests.config eunit skip_deps=true
  26. ct:
  27. @$(REBAR) -C rebar.tests.config ct skip_deps=true
  28. # Dialyzer.
  29. build-plt:
  30. @$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
  31. --apps kernel stdlib sasl tools inets crypto public_key ssl
  32. dialyze:
  33. @$(DIALYZER) --src src --plt .$(PROJECT).plt \
  34. -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs