Makefile 684 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. REBAR = rebar3
  2. MINIMAL_COVERAGE = 55
  3. all: compile
  4. compile: src/epgsql_errcodes.erl
  5. @$(REBAR) compile
  6. clean:
  7. @$(REBAR) clean
  8. @rm -f doc/*.html
  9. @rm -f doc/erlang.png
  10. @rm -f doc/stylesheet.css
  11. @rm -f doc/edoc-info
  12. src/epgsql_errcodes.erl:
  13. ./generate_errcodes_src.sh > src/epgsql_errcodes.erl
  14. common-test:
  15. $(REBAR) ct --readable true -c
  16. eunit:
  17. $(REBAR) eunit -c
  18. # Fail the build if coverage falls below 55%
  19. cover:
  20. $(REBAR) cover -v --min_coverage $(MINIMAL_COVERAGE)
  21. test: compile eunit common-test cover
  22. dialyzer: compile
  23. @$(REBAR) dialyzer
  24. elvis:
  25. @$(REBAR) as lint lint
  26. edoc:
  27. @$(REBAR) edoc
  28. .PHONY: all compile clean common-test eunit cover test dialyzer elvis