Skip to content

Commit

Permalink
Update rebar and the Makefile
Browse files Browse the repository at this point in the history
  * Update rebar to a more recent version
  * Update rebar.config for deprecation warnings
  * Allow people to export the REBAR environment variable to use
    their own version of rebar
  * Fixed `make clean`
  • Loading branch information
benoitc authored and davisp committed Apr 25, 2012
1 parent 3958170 commit 6f589d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Makefile
@@ -1,32 +1,32 @@
REBAR?=./rebar

all: build

clean:
./rebar clean
$(REBAR) clean
rm -rf logs
rm -rf .eunit
rm test/*.beam
rm -f test/*.beam


depends:
@if test ! -d ./deps; then \
./rebar get-deps; \
$(REBAR) get-deps; \
else \
./rebar update-deps; \
$(REBAR) update-deps; \
fi

build:
@if test ! -d ./deps; then \
./rebar get-deps; \
fi
./rebar compile

build: depends
$(REBAR) compile


etap: test/etap.beam test/util.beam
prove test/*.t


eunit:
./rebar eunit skip_deps=true
$(REBAR) eunit skip_deps=true


check: build etap eunit
Expand Down
Binary file modified rebar
Binary file not shown.
2 changes: 1 addition & 1 deletion rebar.config
Expand Up @@ -4,7 +4,7 @@

{port_specs, [{"priv/jiffy.so", ["c_src/*.c"]}]}.

{port_envs, [
{port_env, [
%% Link the spidermonkey library
{".*", "CFLAGS", "$CFLAGS -g -Wall"},

Expand Down

0 comments on commit 6f589d4

Please sign in to comment.