-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (57 loc) · 2.58 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
PROJECT = emq-relx
PROJECT_DESCRIPTION = Release Project for the EMQ Broker
PROJECT_VERSION = 2.2
## Fix 'rebar command not found'
DEPS = goldrush
dep_goldrush = git https://github.com/basho/goldrush 0.1.9
DEPS += emqttd emq_modules emq_dashboard emq_retainer emq_recon emq_reloader \
emq_auth_clientid emq_auth_username emq_auth_ldap emq_auth_http \
emq_auth_mysql emq_auth_pgsql emq_auth_redis emq_auth_mongo \
emq_sn emq_coap emq_stomp emq_plugin_template emq_web_hook \
emq_lua_hook emq_event_store
# emq deps
dep_emqttd = git https://github.com/emqtt/emqttd master
dep_emq_modules = git https://github.com/emqtt/emq-modules master
dep_emq_dashboard = git https://github.com/emqtt/emq-dashboard master
dep_emq_retainer = git https://github.com/emqtt/emq-retainer master
dep_emq_recon = git https://github.com/emqtt/emq-recon master
dep_emq_reloader = git https://github.com/emqtt/emq-reloader master
# emq auth/acl plugins
dep_emq_auth_clientid = git https://github.com/emqtt/emq-auth-clientid master
dep_emq_auth_username = git https://github.com/emqtt/emq-auth-username master
dep_emq_auth_ldap = git https://github.com/emqtt/emq-auth-ldap master
dep_emq_auth_http = git https://github.com/emqtt/emq-auth-http master
dep_emq_auth_mysql = git https://github.com/emqtt/emq-auth-mysql master
dep_emq_auth_pgsql = git https://github.com/emqtt/emq-auth-pgsql master
dep_emq_auth_redis = git https://github.com/emqtt/emq-auth-redis master
dep_emq_auth_mongo = git https://github.com/emqtt/emq-auth-mongo master
# mqtt-sn, coap and stomp
dep_emq_sn = git https://github.com/emqtt/emq-sn master
dep_emq_coap = git https://github.com/emqtt/emq-coap master
dep_emq_stomp = git https://github.com/emqtt/emq-stomp master
# plugin template
dep_emq_plugin_template = git https://github.com/emqtt/emq-plugin-template master
# web_hook lua_hook
dep_emq_web_hook = git https://github.com/emqtt/emq-web-hook master
dep_emq_lua_hook = git https://github.com/emqtt/emq-lua-hook master
# emq-event-store
dep_emq_event_store = git https://github.com/127labs/emq-event-store master
# COVER = true
NO_AUTOPATCH = emq_event_store
include erlang.mk
plugins:
@rm -rf rel
@mkdir -p rel/conf/plugins/ rel/schema/
@for conf in $(DEPS_DIR)/*/etc/*.conf* ; do \
if [ "emq.conf" = "$${conf##*/}" ] ; then \
cp $${conf} rel/conf/ ; \
elif [ "acl.conf" = "$${conf##*/}" ] ; then \
cp $${conf} rel/conf/ ; \
else \
cp $${conf} rel/conf/plugins ; \
fi ; \
done
@for schema in $(DEPS_DIR)/*/priv/*.schema ; do \
cp $${schema} rel/schema/ ; \
done
app:: plugins