2012-09-30 17:42:44 +00:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
|
|
|
MODULE = emdb
|
|
|
|
|
|
|
|
DIALYZER = dialyzer
|
|
|
|
REBAR = rebar
|
|
|
|
|
2013-05-19 04:19:01 +00:00
|
|
|
.PHONY: compile clean
|
2012-09-30 17:42:44 +00:00
|
|
|
|
2013-05-19 04:19:01 +00:00
|
|
|
all: ebin priv compile
|
2012-09-30 17:42:44 +00:00
|
|
|
|
|
|
|
ebin:
|
|
|
|
@mkdir -p $@
|
|
|
|
|
|
|
|
priv:
|
|
|
|
@mkdir -p $@
|
|
|
|
|
2013-05-19 04:19:01 +00:00
|
|
|
compile:
|
2012-09-30 17:42:44 +00:00
|
|
|
@$(REBAR) compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@$(REBAR) clean
|
|
|
|
@rm -f *~ */*~ erl_crash.dump
|
|
|
|
@rm -rf ebin priv
|
2013-05-19 04:19:01 +00:00
|
|
|
|
|
|
|
xref:
|
|
|
|
@$(REBAR) xref skip_deps=true
|
|
|
|
|
|
|
|
test: eunit
|
|
|
|
|
|
|
|
eunit: compile-for-eunit
|
|
|
|
@$(REBAR) eunit skip_deps=true
|
|
|
|
|
|
|
|
eqc: compile-for-eqc
|
|
|
|
@$(REBAR) eqc skip_deps=true
|
|
|
|
|
|
|
|
proper: compile-for-proper
|
|
|
|
@echo "rebar does not implement a 'proper' command" && false
|
|
|
|
|
|
|
|
triq: compile-for-triq
|
|
|
|
@$(REBAR) triq skip_deps=true
|
|
|
|
|
|
|
|
compile-for-eunit:
|
|
|
|
@$(REBAR) compile eunit compile_only=true
|
|
|
|
|
|
|
|
compile-for-eqc:
|
|
|
|
@$(REBAR) -D QC -D QC_EQC compile eqc compile_only=true
|
|
|
|
|
|
|
|
compile-for-eqcmini:
|
|
|
|
@$(REBAR) -D QC -D QC_EQCMINI compile eqc compile_only=true
|
|
|
|
|
|
|
|
compile-for-proper:
|
|
|
|
@$(REBAR) -D QC -D QC_PROPER compile eqc compile_only=true
|
|
|
|
|
|
|
|
compile-for-triq:
|
|
|
|
@$(REBAR) -D QC -D QC_TRIQ compile triq compile_only=true
|
|
|
|
|
|
|
|
plt: compile
|
|
|
|
@$(DIALYZER) --build_plt --output_plt .$(TARGET).plt -pa deps/lager/ebin --apps kernel stdlib
|
|
|
|
|
|
|
|
analyze: compile
|
|
|
|
@$(DIALYZER) --plt .$(TARGET).plt -pa deps/lager/ebin ebin
|
|
|
|
|
|
|
|
repl:
|
|
|
|
@$(ERL) -pa ebin -pz deps/lager/ebin
|