From a5279f57daf8d4e3e8cba77663e71b96e25bb57d Mon Sep 17 00:00:00 2001 From: Juan Jose Comellas Date: Mon, 16 Apr 2012 13:12:32 -0300 Subject: [PATCH] Use rebar from the system path instead of a binary included in the project --- Makefile | 10 +++++----- README.md | 9 ++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a85cbea..1ad77ad 100644 --- a/Makefile +++ b/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) diff --git a/README.md b/README.md index 6460abd..00f1a16 100644 --- a/README.md +++ b/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.