-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
51 lines (43 loc) · 1.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PROJECT = mqttgw
PROJECT_DESCRIPTION = Authentication and authorization plugin for VerneMQ
define PROJECT_ENV
[
{vmq_plugin_hooks, [
{mqttgw, auth_on_register, 5, []},
{mqttgw, auth_on_register_m5, 6, []},
{mqttgw, auth_on_publish, 6, []},
{mqttgw, auth_on_publish_m5, 7, []},
{mqttgw, on_deliver, 6, []},
{mqttgw, on_deliver_m5, 7, []},
{mqttgw, auth_on_subscribe, 3, []},
{mqttgw, auth_on_subscribe_m5, 4, []},
{mqttgw, on_topic_unsubscribed, 2, []},
{mqttgw, on_client_offline, 1, []},
{mqttgw, on_client_gone, 1, []}
]}
]
endef
DEPS = \
vernemq_dev \
toml \
jose \
uuid \
cowboy
dep_vernemq_dev = git https://github.com/erlio/vernemq_dev.git 6d622aa8c901ae7777433aef2bd049e380c474a6
dep_toml = git https://github.com/dozzie/toml.git v0.3.0
dep_jose = git https://github.com/manifest/jose-erlang v0.1.2
dep_uuid = git https://github.com/okeuday/uuid.git v1.7.5
dep_cowboy = git https://github.com/ninenines/cowboy.git 04ca4c5d31a92d4d3de087bbd7d6021dc4a6d409
DEP_PLUGINS = version.mk
BUILD_DEPS = version.mk
dep_version.mk = git https://github.com/manifest/version.mk.git v0.2.0
TEST_DEPS = proper
SHELL_DEPS = tddreloader
SHELL_OPTS = \
-eval 'application:ensure_all_started($(PROJECT), permanent)' \
-s tddreloader start \
-config rel/sys
include erlang.mk
.PHONY: elvis
elvis:
./elvis rock -c elvis.config