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.

41 line
795 B

  1. .PHONY: clean dialyzer_warnings xref_warnings deps test
  2. REBAR=$(PWD)/rebar
  3. RETEST=$(PWD)/deps/retest/retest
  4. all:
  5. ./bootstrap
  6. clean:
  7. @rm -rf rebar ebin/*.beam inttest/rt.work rt.work .eunit
  8. distclean: clean
  9. @rm -rf deps
  10. debug:
  11. @./bootstrap debug
  12. check: debug xref dialyzer deps test
  13. xref:
  14. @./rebar xref
  15. dialyzer: dialyzer_warnings
  16. @diff -U0 dialyzer_reference dialyzer_warnings
  17. dialyzer_warnings:
  18. -@dialyzer -q -n ebin -Wunmatched_returns -Werror_handling \
  19. -Wrace_conditions > dialyzer_warnings
  20. binary: VSN = $(shell ./rebar -V)
  21. binary: clean all
  22. @cp rebar ../rebar.wiki/rebar
  23. (cd ../rebar.wiki && git commit -m "Update $(VSN)" rebar)
  24. deps:
  25. @REBAR_EXTRA_DEPS=1 ./rebar get-deps
  26. @(cd deps/retest && $(REBAR) compile escriptize)
  27. test:
  28. @$(REBAR) eunit
  29. @$(RETEST) inttest