Skip to content

Commit

Permalink
Fetch rebar when needed - #6
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgray committed Feb 27, 2012
1 parent a7a2437 commit a8cddca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Makefile
Expand Up @@ -2,14 +2,17 @@


all: deps compile all: deps compile


compile: compile: rebar
./rebar compile ./rebar compile


deps: deps: rebar
./rebar get-deps ./rebar get-deps


clean: clean: rebar
./rebar clean ./rebar clean


test: compile test: compile
./rebar skip_deps=true eunit ./rebar skip_deps=true eunit

rebar:
wget http://cloud.github.com/downloads/basho/rebar/rebar && chmod u+x rebar
Binary file removed rebar
Binary file not shown.
3 changes: 1 addition & 2 deletions rebar.config
@@ -1,5 +1,4 @@
{port_sources, ["c_src/*.c"]}. {port_specs, [{"priv/exml.so", ["c_src/*.c"]}]}.
{so_name, "exml.so"}.
{port_envs, [ {port_envs, [
{".*", "CFLAGS", "$CFLAGS -g -Wall"}, {".*", "CFLAGS", "$CFLAGS -g -Wall"},
{".*", "LDFLAGS", "$LDFLAGS -fPIC -lexpat"} {".*", "LDFLAGS", "$LDFLAGS -fPIC -lexpat"}
Expand Down

0 comments on commit a8cddca

Please sign in to comment.