Permalink
Browse files

Fetch rebar when needed - #6

  • Loading branch information...
paulgray committed Feb 27, 2012
1 parent a7a2437 commit a8cddca6ec6c26cf3efad70879dc64243d19fe73
Showing with 7 additions and 5 deletions.
  1. +6 −3 Makefile
  2. BIN rebar
  3. +1 −2 rebar.config
View
@@ -2,14 +2,17 @@
all: deps compile
-compile:
+compile: rebar
./rebar compile
-deps:
+deps: rebar
./rebar get-deps
-clean:
+clean: rebar
./rebar clean
test: compile
./rebar skip_deps=true eunit
+
+rebar:
+ wget http://cloud.github.com/downloads/basho/rebar/rebar && chmod u+x rebar
View
BIN rebar
Binary file not shown.
View
@@ -1,5 +1,4 @@
-{port_sources, ["c_src/*.c"]}.
-{so_name, "exml.so"}.
+{port_specs, [{"priv/exml.so", ["c_src/*.c"]}]}.
{port_envs, [
{".*", "CFLAGS", "$CFLAGS -g -Wall"},
{".*", "LDFLAGS", "$LDFLAGS -fPIC -lexpat"}

0 comments on commit a8cddca

Please sign in to comment.