You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
715 B

13 years ago
13 years ago
13 years ago
13 years ago
  1. # See LICENSE for licensing information.
  2. DIALYZER = dialyzer
  3. REBAR = rebar
  4. APPNAME = goldrush
  5. all: app
  6. app: deps
  7. @$(REBAR) compile
  8. deps:
  9. @$(REBAR) get-deps
  10. clean:
  11. @$(REBAR) clean
  12. rm -f test/*.beam
  13. rm -f erl_crash.dump
  14. tests: clean app eunit ct
  15. eunit:
  16. @$(REBAR) -C rebar.test.config eunit skip_deps=true
  17. ct:
  18. @$(REBAR) -C rebar.test.config ct skip_deps=true
  19. build-plt:
  20. @$(DIALYZER) --build_plt --output_plt .$(APPNAME)_dialyzer.plt \
  21. --apps kernel stdlib sasl inets crypto public_key ssl compiler syntax_tools
  22. dialyze:
  23. @$(DIALYZER) --src src --plt .$(APPNAME)_dialyzer.plt --no_native \
  24. -Werror_handling -Wrace_conditions -Wunmatched_returns # -Wunderspecs
  25. docs:
  26. @$(REBAR) doc skip_deps=true