Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…oject
  • Loading branch information...
commit a5279f57daf8d4e3e8cba77663e71b96e25bb57d 1 parent 0db1767
@jcomellas jcomellas authored
Showing with 13 additions and 6 deletions.
  1. +5 −5 Makefile
  2. +8 −1 README.md
View
10 Makefile
@@ -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
9 README.md
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.