dgiot/apps/dgiot_gb26875/Makefile

25 lines
788 B
Makefile
Raw Normal View History

2021-09-17 11:28:47 +08:00
PROJECT = dgiot_gb26875
PROJECT_DESCRIPTION = dgiot_gb26875 Protocol Plugin
PROJECT_VERSION = 4.3.0
CUR_BRANCH := $(shell git branch | grep -e "^*" | cut -d' ' -f 2)
BRANCH := $(if $(filter $(CUR_BRANCH), master develop), $(CUR_BRANCH), develop)
BUILD_DEPS = emqx cuttlefish lager
dep_emqx = git-emqx https://github.com/emqx/emqx $(BRANCH)
dep_cuttlefish = git-emqx https://github.com/emqx/cuttlefish v2.2.1
dep_lager = git https://github.com/basho/lager master
DIALYZER_DIRS := ebin/
DIALYZER_OPTS := --verbose --statistics -Werror_handling \
-Wrace_conditions #-Wunmatched_returns
ERLC_OPTS += +'{parse_transform, lager_transform}'
include erlang.mk
app:: rebar.config
app.config::
./deps/cuttlefish/cuttlefish -l info -e etc/ -c etc/dgiot_gb26875.conf -d data