Skip to content
Permalink
Browse files
Update rebar and the Makefile
  * 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 6f589d457673a3bbdf4329103fbe2b10b302ec87
Showing 3 changed files with 11 additions and 11 deletions.
@@ -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
BIN +3.17 KB (100%) rebar
Binary file not shown.
@@ -4,7 +4,7 @@

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

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

0 comments on commit 6f589d4

Please sign in to comment.