Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # See LICENSE for licensing information.
  2. PROJECT = ranch
  3. PROJECT_DESCRIPTION = Socket acceptor pool for TCP protocols.
  4. PROJECT_VERSION = 2.0.0-rc.3
  5. PROJECT_REGISTERED = ranch_server
  6. # Options.
  7. CT_OPTS += -pa test -ct_hooks ranch_ct_hook [] # -boot start_sasl
  8. PLT_APPS = crypto public_key tools
  9. # Dependencies.
  10. LOCAL_DEPS = ssl
  11. DOC_DEPS = asciideck
  12. TEST_DEPS = $(if $(CI_ERLANG_MK),ci.erlang.mk) ct_helper stampede
  13. dep_ct_helper = git https://github.com/ninenines/ct_helper master
  14. dep_stampede = git https://github.com/juhlig/stampede 0.5.0
  15. # CI configuration.
  16. dep_ci.erlang.mk = git https://github.com/ninenines/ci.erlang.mk master
  17. DEP_EARLY_PLUGINS = ci.erlang.mk
  18. AUTO_CI_OTP ?= OTP-21+
  19. AUTO_CI_HIPE ?= OTP-LATEST
  20. # AUTO_CI_ERLLVM ?= OTP-LATEST
  21. AUTO_CI_WINDOWS ?= OTP-21+
  22. # Standard targets.
  23. include erlang.mk
  24. # Don't run the havoc test suite by default.
  25. ifndef FULL
  26. CT_SUITES := $(filter-out stampede,$(CT_SUITES))
  27. endif
  28. # Compile options.
  29. ERLC_OPTS += +warn_missing_spec +warn_untyped_record
  30. TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}'
  31. # Dialyze the tests.
  32. DIALYZER_OPTS += --src -r test
  33. # Use erl_make_certs from the tested release during CI
  34. # and ensure that ct_helper is always recompiled.
  35. #
  36. # Note that erl_make_certs was removed from OTP-20.1. For now
  37. # we are fine using the most recent version from OTP-20.
  38. ci-setup:: $(DEPS_DIR)/ct_helper
  39. $(gen_verbose) cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/ || true
  40. $(gen_verbose) $(MAKE) -C $(DEPS_DIR)/ct_helper clean app
  41. # Prepare for the release.
  42. prepare_tag:
  43. $(verbose) echo -n "Most recent tag: "
  44. $(verbose) git tag | tail -n1
  45. $(verbose) git verify-tag `git tag | tail -n1`
  46. $(verbose) echo -n "MAKEFILE: "
  47. $(verbose) grep -m1 PROJECT_VERSION Makefile
  48. $(verbose) echo -n "APP: "
  49. $(verbose) grep -m1 vsn ebin/$(PROJECT).app | sed 's/ //g'
  50. $(verbose) echo -n "APPUP: "
  51. $(verbose) grep -m1 {\" src/$(PROJECT).appup
  52. $(verbose) echo
  53. $(verbose) echo "Links in the README:"
  54. $(verbose) grep http.*:// README.asciidoc
  55. $(verbose) echo
  56. $(verbose) echo "Titles in most recent CHANGELOG:"
  57. $(verbose) for f in `ls -rv doc/src/guide/migrating_from_*.asciidoc | head -n1`; do \
  58. echo $$f:; \
  59. grep == $$f; \
  60. done