Makefile 612 B

123456789101112131415161718192021222324252627282930313233343536
  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 skip_deps=true
  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 -Werror_handling \
  23. -Wrace_conditions -Wunmatched_returns # -Wunderspecs
  24. docs:
  25. @$(REBAR) doc skip_deps=true