55 lines
1004 B
Makefile
55 lines
1004 B
Makefile
.PHONY: rel deps test plugins
|
|
|
|
APP = emqttd
|
|
BASE_DIR = $(shell pwd)
|
|
REBAR = $(BASE_DIR)/rebar
|
|
DIST = $(BASE_DIR)/rel/$(APP)
|
|
|
|
all: compile
|
|
|
|
# submods:
|
|
# @git submodule update --init
|
|
|
|
compile: deps
|
|
@$(REBAR) compile
|
|
|
|
deps:
|
|
@$(REBAR) get-deps
|
|
|
|
update-deps:
|
|
@$(REBAR) update-deps
|
|
|
|
xref:
|
|
@$(REBAR) xref skip_deps=true
|
|
|
|
clean:
|
|
@$(REBAR) clean
|
|
|
|
test:
|
|
ERL_FLAGS="-config rel/files/emqttd.test.config" $(REBAR) -v skip_deps=true ct
|
|
#$(REBAR) skip_deps=true eunit
|
|
|
|
edoc:
|
|
@$(REBAR) doc
|
|
|
|
rel: compile
|
|
@cd rel && $(REBAR) generate -f
|
|
|
|
dist: rel
|
|
|
|
PLT = $(BASE_DIR)/.emqttd_dialyzer.plt
|
|
APPS = erts kernel stdlib sasl crypto ssl os_mon syntax_tools \
|
|
public_key mnesia inets compiler
|
|
|
|
check_plt: compile
|
|
dialyzer --check_plt --plt $(PLT) --apps $(APPS) \
|
|
deps/*/ebin ./ebin plugins/*/ebin
|
|
|
|
build_plt: compile
|
|
dialyzer --build_plt --output_plt $(PLT) --apps $(APPS) \
|
|
deps/*/ebin ./ebin plugins/*/ebin
|
|
|
|
dialyzer: compile
|
|
dialyzer -Wno_return --plt $(PLT) deps/*/ebin ./ebin plugins/*/ebin
|
|
|