dgiot/apps/dgiot_topo/Makefile

29 lines
823 B
Makefile
Raw Normal View History

2021-06-11 09:52:41 +08:00
PROJECT = dgiot_opc
PROJECT_DESCRIPTION = dgiot_opc
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 ekaf jsx brod supervisor3
dep_emqx = git-emqx https://github.com/emqx/emqx $(BRANCH)
dep_cuttlefish = git-emqx https://github.com/emqx/cuttlefish v2.2.1
ERLC_OPTS += +debug_info
ERLC_OPTS += +'{parse_transform, lager_transform}'
NO_AUTOPATCH = cuttlefish
COVER = true
ERLC_OPTS += +'{parse_transform, lager_transform}'
$(shell [ -f erlang.mk ] || curl -s -o erlang.mk https://raw.githubusercontent.com/emqx/erlmk/master/erlang.mk)
include erlang.mk
app:: rebar.config
app.config::
./deps/cuttlefish/cuttlefish -l info -e etc/ -c etc/dgiot_topo.conf -i priv/dgiot_topo.schema -d data