Makefile 537 B

123456789101112131415161718192021222324252627
  1. REBAR = rebar
  2. all: compile
  3. compile:
  4. @$(REBAR) compile
  5. clean:
  6. @$(REBAR) clean
  7. create_testdbs:
  8. psql template1 < ./test_data/test_schema.sql
  9. test:
  10. @$(REBAR) eunit
  11. performance_test: compile
  12. erlc ./test/epgsql_perf_tests.erl
  13. erl -noshell -pa ./ebin -eval "eunit:test(epgsql_perf_tests, [verbose])" -run init stop
  14. dialyzer: build.plt compile
  15. dialyzer --plt $< ebin
  16. build.plt:
  17. dialyzer -q --build_plt --apps erts kernel stdlib ssl --output_plt $@
  18. .PHONY: all compile release clean create_testdbs performance_test test dialyzer