|
@@ -29,13 +29,14 @@ PLT_APPS ?= kernel stdlib compiler erts eunit syntax_tools
|
|
DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions -Wunmatched_returns \
|
|
DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions -Wunmatched_returns \
|
|
-Wunderspecs --verbose --fullpath
|
|
-Wunderspecs --verbose --fullpath
|
|
.PHONY: dialyze
|
|
.PHONY: dialyze
|
|
-dialyze:
|
|
+dialyze: compile
|
|
|
|
+ @[ -f $(PLT_FILE) ] || $(MAKE) plt
|
|
@dialyzer --plt $(PLT_FILE) $(DIALYZER_OPTS) ebin || [ $$? -eq 2 ];
|
|
@dialyzer --plt $(PLT_FILE) $(DIALYZER_OPTS) ebin || [ $$? -eq 2 ];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: plt
|
|
.PHONY: plt
|
|
-plt:
|
|
+plt: compile
|
|
|
|
|
|
rm -f deps/merl/priv/merl_transform.beam
|
|
rm -f deps/merl/priv/merl_transform.beam
|
|
@echo "Building PLT, may take a few minutes"
|
|
@echo "Building PLT, may take a few minutes"
|
|
@@ -47,6 +48,9 @@ clean:
|
|
@$(REBAR) -C rebar-slex.config clean
|
|
@$(REBAR) -C rebar-slex.config clean
|
|
rm -fv erl_crash.dump
|
|
rm -fv erl_crash.dump
|
|
|
|
|
|
|
|
+really-clean: clean
|
|
|
|
+ rm -f $(PLT_FILE)
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|