Use rebar from the system path instead of a binary included in the project

This commit is contained in:
Juan Jose Comellas 2012-04-16 13:12:32 -03:00
parent 0db1767179
commit a5279f57da
2 changed files with 13 additions and 6 deletions

View File

@ -14,10 +14,10 @@ APPS=kernel stdlib
all: compile
compile:
@./rebar compile
@rebar compile
doc:
@./rebar doc
@rebar doc
plt: compile
@$(DIALYZER) --build_plt --output_plt $(PLT_FILE) --apps $(APPS) ebin
@ -29,13 +29,13 @@ analyze: compile
@$(DIALYZER) --plt $(PLT_FILE) $(DIALYZER_OPTS) -r ebin
clean:
@./rebar clean
@rebar clean
test:
@./rebar eunit
@rebar eunit
dialyzer:
@./rebar analyze
@rebar analyze
console: compile
$(ERL) -sname $(APPLICATION) $(EPATH)

View File

@ -10,6 +10,13 @@ Requirements
You should only need a somewhat recent version of Erlang/OTP. The module has
been tested with Erlang R13B, R14B and R15B.
You also need a recent version of [rebar](http://github.com/basho/rebar) in
the system path. If you're going to run the unit tests you need the latest
version of rebar to make sure that the latest version of *getopt* is being
used. rebar already includes a compiled copy of the ``getopt`` module in its
own binary file and will give precedence to its own modules over the ones in
the project.
Installation
------------
@ -323,7 +330,7 @@ will return:
```
Notice that the *dbname* option was assigned the value ``users`` instead of ``mydb``.
This happens because the option terminator prevented ``getopt`` from evaluating it
This happens because the option terminator prevented *getopt* from evaluating it
and the default value was assigned to it.