Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch fully to rebar3 + update deps
- Loading branch information
Showing
8 changed files
with
21 additions
and
90 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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,44 @@ | ||
.PHONY: all clean clean_plt deps compile test doc dialyzer xref ci | ||
REBAR3=$(shell which rebar3 || echo ./rebar3) | ||
|
||
.PHONY: all clean clean_plt compile test doc dialyzer xref ci | ||
|
||
EXOMETER_PLT=exometer_core.plt | ||
DIALYZER_OPTS = # -Wunderspecs | ||
DIALYZER_APPS = erts kernel stdlib compiler syntax_tools \ | ||
test_server common_test folsom \ | ||
parse_trans setup | ||
|
||
all: deps compile xref test | ||
|
||
ci: deps compile xref dialyzer test | ||
all: compile xref test | ||
|
||
deps: | ||
rebar3 upgrade | ||
ci: compile xref dialyzer test | ||
|
||
compile: | ||
rebar3 compile | ||
$(REBAR3) compile | ||
|
||
clean: clean_plt | ||
rebar3 clean | ||
$(REBAR3) clean | ||
|
||
clean-all: clean | ||
rm -rf deps | ||
|
||
rm -rf _build | ||
test: | ||
ERL_LIBS=./examples rebar3 ct skip_deps=true | ||
$(REBAR3) as test do eunit | ||
$(REBAR3) as test do ct | ||
|
||
xref: | ||
ERL_LIBS=./deps rebar3 xref skip_deps=true | ||
|
||
edown_deps: | ||
rebar3 as docs upgrade | ||
rebar3 as docs compile | ||
$(REBAR3) xref | ||
|
||
doc: edown_deps | ||
rebar3 as docs edoc | ||
doc: | ||
$(REBAR3) as docs do edoc | ||
|
||
$(EXOMETER_PLT): deps compile | ||
$(EXOMETER_PLT): | ||
$(REBAR3) compile | ||
ERL_LIBS=deps dialyzer --build_plt --output_plt $(EXOMETER_PLT) \ | ||
--apps $(DIALYZER_APPS) | \ | ||
fgrep -v -f ./dialyzer.ignore-warnings | ||
|
||
clean_plt: | ||
rm -f $(EXOMETER_PLT) | ||
|
||
dialyzer: deps compile $(EXOMETER_PLT) | ||
dialyzer: compile $(EXOMETER_PLT) | ||
dialyzer -r ebin --plt $(EXOMETER_PLT) $(DIALYZER_OPTS) | \ | ||
fgrep -v -f ./dialyzer.ignore-warnings |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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