mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-05 05:37:40 +08:00
44 lines
801 B
Makefile
44 lines
801 B
Makefile
## shallow clone for speed
|
|
|
|
REBAR_GIT_CLONE_OPTIONS += --depth 1
|
|
export REBAR_GIT_CLONE_OPTIONS
|
|
|
|
REBAR = rebar3
|
|
|
|
CT_NODE_NAME = emqxct@127.0.0.1
|
|
|
|
all: compile
|
|
|
|
compile: unlock
|
|
$(REBAR) compile
|
|
|
|
clean: distclean
|
|
|
|
ct: compile
|
|
$(REBAR) as test ct -v --readable=false --name $(CT_NODE_NAME)
|
|
|
|
eunit: compile
|
|
$(REBAR) as test eunit
|
|
|
|
unlock:
|
|
$(REBAR) unlock
|
|
|
|
xref:
|
|
$(REBAR) xref
|
|
|
|
cover:
|
|
$(REBAR) cover
|
|
|
|
distclean:
|
|
@rm -rf _build
|
|
@rm -f data/app.*.config data/vm.*.args rebar.lock
|
|
|
|
CUTTLEFISH_SCRIPT = _build/default/lib/cuttlefish/cuttlefish
|
|
|
|
$(CUTTLEFISH_SCRIPT):
|
|
@${REBAR} get-deps
|
|
@if [ ! -f cuttlefish ]; then make -C _build/default/lib/cuttlefish; fi
|
|
|
|
app.config: $(CUTTLEFISH_SCRIPT)
|
|
$(verbose) $(CUTTLEFISH_SCRIPT) -l info -e etc/ -c etc/dgiot_mysql.conf -i priv/dgiot_mysql.schema -d data
|