Debian Codegraph @

Makefile

raw symbols SCIP
1 # See LICENSE for licensing information.
2
3 PROJECT = ranch
4 PROJECT_DESCRIPTION = Socket acceptor pool for TCP protocols.
5 PROJECT_VERSION = 2.2.1
6 PROJECT_REGISTERED = ranch_server
7
8 # Options.
9
10 CT_OPTS += -pa test -ct_hooks ranch_ct_hook [] # -boot start_sasl
11 PLT_APPS = crypto public_key tools # common_test ct_helper stampede
12
13 # Dependencies.
14
15 LOCAL_DEPS = ssl
16
17 DOC_DEPS = asciideck
18
19 TEST_DEPS = $(if $(CI_ERLANG_MK),ci.erlang.mk) ct_helper stampede
20 dep_ct_helper = git https://github.com/ninenines/ct_helper master
21 dep_stampede = git https://github.com/juhlig/stampede 0.6.0
22
23 # Concuerror tests.
24
25 # CONCUERROR_OPTS = -v 7 -k
26 CONCUERROR_TESTS = ranch_concuerror:start_stop ranch_concuerror:info
27
28 # CI configuration.
29
30 dep_ci.erlang.mk = git https://github.com/ninenines/ci.erlang.mk master
31 DEP_EARLY_PLUGINS = ci.erlang.mk
32
33 AUTO_CI_OTP ?= OTP-LATEST-24+
34 AUTO_CI_WINDOWS ?= OTP-LATEST-24+
35
36 # Hex configuration.
37
38 define HEX_TARBALL_EXTRA_METADATA
39 #{
40 licenses => [<<"ISC">>],
41 links => #{
42 <<"User guide">> => <<"https://ninenines.eu/docs/en/ranch/2.2/guide/">>,
43 <<"Function reference">> => <<"https://ninenines.eu/docs/en/ranch/2.2/manual/">>,
44 <<"GitHub">> => <<"https://github.com/ninenines/ranch">>,
45 <<"Sponsor">> => <<"https://github.com/sponsors/essen">>
46 }
47 }
48 endef
49
50 # Standard targets.
51
52 include erlang.mk
53
54 # Don't run the havoc test suite by default.
55
56 ifndef FULL
57 CT_SUITES := $(filter-out stampede,$(CT_SUITES))
58 endif
59
60 # Compile options.
61
62 ERLC_OPTS += +warn_missing_spec +warn_untyped_record
63 TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}'
64
65 # Dialyze the tests.
66
67 #DIALYZER_OPTS += --src -r test
68
69 # Use erl_make_certs from the tested release during CI
70 # and ensure that ct_helper is always recompiled.
71 #
72 # Note that erl_make_certs was removed from OTP-20.1. For now
73 # we are fine using the most recent version from OTP-20.
74
75 ci-setup:: $(DEPS_DIR)/ct_helper
76 $(gen_verbose) cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/ || true
77 $(gen_verbose) $(MAKE) -C $(DEPS_DIR)/ct_helper clean app
78
79 # Prepare for the release.
80
81 prepare_tag:
82 $(verbose) $(warning Hex metadata: $(HEX_TARBALL_EXTRA_METADATA))
83 $(verbose) echo
84 $(verbose) echo -n "Most recent tag: "
85 $(verbose) git tag --sort=creatordate | tail -n1
86 $(verbose) git verify-tag `git tag --sort=creatordate | tail -n1`
87 $(verbose) echo -n "MAKEFILE: "
88 $(verbose) grep -m1 PROJECT_VERSION Makefile
89 $(verbose) echo -n "APP: "
90 $(verbose) grep -m1 vsn ebin/$(PROJECT).app | sed 's/ //g'
91 $(verbose) echo -n "APPUP: "
92 $(verbose) grep -m1 {\" src/$(PROJECT).appup
93 $(verbose) echo -n "GUIDE: "
94 $(verbose) grep -h dep_$(PROJECT)_commit doc/src/guide/*.asciidoc || true
95 $(verbose) echo ; echo
96 $(verbose) echo -n "LICENSE: " ; head -n1 LICENSE
97 $(verbose) echo
98 $(verbose) echo "Dependencies:"
99 $(verbose) grep ^DEPS Makefile || echo "DEPS ="
100 $(verbose) grep ^dep_ Makefile || true
101 $(verbose) echo
102 $(verbose) echo "Links in the README:"
103 $(verbose) grep http.*:// README.asciidoc
104 $(verbose) echo
105 $(verbose) echo "Titles in most recent CHANGELOG:"
106 $(verbose) for f in `ls -rv doc/src/guide/migrating_from_*.asciidoc | head -n1`; do \
107 echo $$f:; \
108 grep == $$f; \
109 done