-
Notifications
You must be signed in to change notification settings - Fork 165
Build PropEr using rebar3 instead of own rebar #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,8 @@ doc/*.css | |
| doc/*.html | ||
| doc/*.png | ||
| doc/edoc-info | ||
| .directory | ||
| .eunit | ||
| .rebar | ||
| rebar3 | ||
| rebar.lock | ||
| .eunit/ | ||
| .rebar/ | ||
| _build/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,15 +30,19 @@ endif | |
|
|
||
| PROPER_REBAR := .$(SEP)rebar | ||
|
|
||
| REBAR3_URL := https://s3.amazonaws.com/rebar3/rebar3 | ||
| REBAR3 ?= $(shell which rebar3 || which .$(SEP)rebar3 || \ | ||
| (wget $(REBAR3_URL) && chmod +x rebar3 && echo .$(SEP)rebar3)) | ||
|
|
||
| default: compile | ||
|
|
||
| all: compile dialyzer doc test | ||
|
|
||
| compile: | ||
| $(PROPER_REBAR) compile | ||
| $(REBAR3) compile | ||
|
|
||
| dialyzer: .plt/proper_plt compile | ||
| dialyzer -n -nn --plt $< -Wunmatched_returns ebin | ||
| dialyzer -n -nn --plt $< -Wunmatched_returns _build/default/lib/proper/ebin | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rebar3 has a dialyzer command that should take care of building the plt and including the correct beams
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know about the |
||
|
|
||
| .plt/proper_plt: .plt | ||
| dialyzer --build_plt --output_plt $@ --apps erts kernel stdlib compiler crypto syntax_tools eunit | ||
|
|
@@ -58,6 +62,7 @@ clean: | |
| distclean: clean | ||
| $(RM) -r .eunit .rebar | ||
| $(RM) .plt/proper_plt | ||
| $(RM) -r _build rebar3 rebar.lock | ||
| $(PROPER_REBAR) clean | ||
|
|
||
| rebuild: distclean compile | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is typically checked in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should it be? PropEr does not have any dependencies, let alone locked ones, and it seems that
rebar3automatically generates thisrebar.lockfile when run. What I am missing?