44 lines
776 B
Makefile
44 lines
776 B
Makefile
|
|
## shallow clone for speed
|
|
|
|
REBAR_GIT_CLONE_OPTIONS += --depth 1
|
|
export REBAR_GIT_CLONE_OPTIONS
|
|
|
|
REBAR = rebar3
|
|
all: compile
|
|
|
|
compile:
|
|
$(REBAR) compile
|
|
|
|
clean: distclean
|
|
|
|
ct: compile
|
|
$(REBAR) as test ct -v
|
|
|
|
clean: distclean
|
|
|
|
eunit: compile
|
|
$(REBAR) as test eunit
|
|
|
|
xref:
|
|
$(REBAR) xref
|
|
|
|
dialyzer:
|
|
$(REBAR) dialyzer
|
|
|
|
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) etc/emqx_auth_mysql.conf
|
|
$(verbose) $(CUTTLEFISH_SCRIPT) -l info -e etc/ -c etc/emqx_auth_mysql.conf -i priv/emqx_auth_mysql.schema -d data
|