Skip to content
Browse files

Makes exql compilable through rebar only, not just the Makefile

  • Loading branch information...
1 parent 54882a6 commit 64ee5a690454fe7da780dfddfd4c1cab67e6db61 Yurii Rashkovskii committed Jul 7, 2012
Showing with 5 additions and 3 deletions.
  1. +3 −3 Makefile
  2. +2 −0 rebar.config
View
6 Makefile
@@ -1,4 +1,4 @@
-all: compile
+all: compile
deps/elixir/rel/elixir/bin/elixir:
@git clone https://github.com/elixir-lang/elixir deps/elixir
@@ -7,8 +7,8 @@ deps/elixir/rel/elixir/bin/elixir:
prepare: deps/elixir/rel/elixir/bin/elixir
-compile: prepare
- @ERL_LIBS=deps/elixir/rel/elixir/lib ./rebar compile
+compile:
+ @./rebar compile
iex: prepare
@ERL_LIBS=deps ./deps/elixir/rel/elixir/bin/iex -pa ebin
View
2 rebar.config
@@ -1 +1,3 @@
{plugins, [rebar_elixir_compiler]}.
+{lib_dirs, ["deps","deps/elixir/rel/elixir/lib"]}.
+{pre_hooks, [{compile, "make prepare"}]}.

0 comments on commit 64ee5a6

Please sign in to comment.
Something went wrong with that request. Please try again.