46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
PROJECT = emqttd
|
|
PROJECT_DESCRIPTION = Erlang MQTT Broker
|
|
PROJECT_VERSION = 2.1.0
|
|
|
|
NO_AUTOPATCH = cuttlefish
|
|
|
|
DEPS = gproc lager esockd mochiweb lager_syslog pbkdf2
|
|
|
|
dep_gproc = git https://github.com/uwiger/gproc
|
|
dep_getopt = git https://github.com/jcomellas/getopt v0.8.2
|
|
dep_lager = git https://github.com/basho/lager master
|
|
dep_esockd = git https://github.com/emqtt/esockd v4.2
|
|
dep_mochiweb = git https://github.com/emqtt/mochiweb
|
|
dep_lager_syslog = git https://github.com/basho/lager_syslog
|
|
dep_pbkdf2 = git https://github.com/comtihon/erlang-pbkdf2.git 2.0.0
|
|
|
|
ERLC_OPTS += +'{parse_transform, lager_transform}'
|
|
|
|
BUILD_DEPS = cuttlefish
|
|
dep_cuttlefish = git https://github.com/emqtt/cuttlefish
|
|
|
|
TEST_DEPS = emqttc
|
|
dep_emqttc = git https://github.com/emqtt/emqttc
|
|
|
|
TEST_ERLC_OPTS += +debug_info
|
|
TEST_ERLC_OPTS += +'{parse_transform, lager_transform}'
|
|
|
|
EUNIT_OPTS = verbose
|
|
# EUNIT_ERL_OPTS =
|
|
|
|
CT_SUITES = emqttd emqttd_access emqttd_lib emqttd_inflight emqttd_mod \
|
|
emqttd_net emqttd_mqueue emqttd_protocol emqttd_topic \
|
|
emqttd_trie emqttd_vm
|
|
|
|
CT_OPTS = -cover test/ct.cover.spec -erl_args -name emqttd_ct@127.0.0.1
|
|
|
|
COVER = true
|
|
|
|
include erlang.mk
|
|
|
|
app:: rebar.config
|
|
|
|
app.config::
|
|
./deps/cuttlefish/cuttlefish -l info -e etc/ -c etc/emq.conf -i priv/emq.schema -d data/
|
|
|