Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmytro Lytovchenko
committed
Feb 8, 2014
1 parent
1aad876
commit 06cd768
Showing
14 changed files
with
569 additions
and
529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -4,4 +4,5 @@ deps | ||
ebin/* | ebin/* | ||
epm | epm | ||
*.iml | *.iml | ||
.idea | .idea | ||
*.plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,39 @@ | |||
.PHONY: epm | .PHONY: compile | ||
epm: | compile: | ||
rebar get-deps compile escriptize | rebar get-deps compile escriptize | ||
|
|
||
#------------------------------------------------------------------------------- | |||
OTP_PLT = .epm_otp.plt | |||
COMBO_PLT = .epm_combo.plt | |||
PLT_LIBS0 = ebin $(wildcard deps/*/ebin) | |||
PLT_LIBS = $(subst deps/riak_pb/ebin,,$(PLT_LIBS0)) | |||
|
|||
DIALYZER_APPS = epm | |||
DIALYZER_APPS_PATHS = ebin | |||
#$(addsuffix /ebin, $(addprefix apps/, $(DIALYZER_APPS))) | |||
|
|||
.PHONY: check_plt | |||
check_plt: $(COMBO_PLT) | |||
dialyzer --check_plt --plt $(COMBO_PLT) $(PLT_LIBS) | |||
|
|||
.PHONY: build_sysplt | |||
build_sysplt: $(OTP_PLT) | |||
|
|||
$(OTP_PLT): | |||
dialyzer --output_plt $(OTP_PLT) --build_plt \ | |||
--apps erts kernel stdlib inets sasl ssl public_key crypto mnesia | |||
|
|||
.PHONY: build_plt | |||
build_plt: compile build_sysplt $(COMBO_PLT) | |||
|
|||
$(COMBO_PLT): | |||
dialyzer --plt $(OTP_PLT) --output_plt $(COMBO_PLT) --add_to_plt $(PLT_LIBS) | |||
|
|||
.PHONY: dialyze | |||
dialyze: compile check_plt | |||
dialyzer -Wno_return --fullpath --plt $(COMBO_PLT) $(DIALYZER_APPS_PATHS) \ | |||
| fgrep -v -f ./dialyzer.ignore-warnings | tee dialyzer.log - | |||
|
|||
.PHONY: cleanplt | |||
cleanplt: | |||
rm $(COMBO_PLT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.