2015-03-02 09:25:21 +00:00
|
|
|
REBAR_BIN := $(shell which rebar)
|
|
|
|
ifeq ($(REBAR_BIN),)
|
|
|
|
REBAR_BIN = ./rebar
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: rel deps package pkgclean
|
|
|
|
|
|
|
|
all: deps compile
|
|
|
|
|
|
|
|
compile:
|
|
|
|
$(REBAR_BIN) compile
|
|
|
|
|
|
|
|
deps:
|
|
|
|
$(REBAR_BIN) get-deps
|
|
|
|
|
|
|
|
clean:
|
2015-03-03 07:22:05 +00:00
|
|
|
$(REBAR_BIN) -r clean
|
2015-03-02 09:25:21 +00:00
|
|
|
|
|
|
|
test: deps compile eunit
|
|
|
|
|
|
|
|
eunit:
|
|
|
|
$(REBAR_BIN) -v skip_deps=true eunit
|
|
|
|
|
|
|
|
pulse: compile
|
|
|
|
env USE_PULSE=1 $(REBAR_BIN) skip_deps=true clean compile
|
|
|
|
env USE_PULSE=1 $(REBAR_BIN) skip_deps=true -D PULSE eunit
|
2014-08-30 13:08:48 +00:00
|
|
|
|
2015-03-03 07:01:41 +00:00
|
|
|
APPS = kernel stdlib sasl erts ssl compiler eunit
|
|
|
|
PLT = $(HOME)/.tango_dialyzer_plt
|
2014-08-30 13:08:48 +00:00
|
|
|
|
|
|
|
build_plt: deps compile
|
|
|
|
dialyzer --build_plt --output_plt $(PLT) --apps $(APPS) deps/*/ebin
|
|
|
|
|
|
|
|
dialyzer: deps compile
|
|
|
|
dialyzer -Wno_return --plt $(PLT) ebin
|
|
|
|
|
|
|
|
clean_plt:
|
|
|
|
rm $(PLT)
|