Permalink
Browse files

Build support refresh

  • Loading branch information...
1 parent 4e65f6e commit 7457f3eac822242209ac4e142fefc9a3151f9219 @gar1t committed Aug 3, 2011
Showing with 25 additions and 10 deletions.
  1. +17 −9 Makefile
  2. BIN rebar
  3. +0 −1 rebar.config
  4. +8 −0 test/Makefile
View
@@ -1,23 +1,31 @@
-.PHONY: compile
-compile:
+compile: deps
./rebar compile
-.PHONY: clean
+quick:
+ ./rebar compile skip_deps=true
+
+deps:
+ ./rebar get-deps
+
+refresh-deps:
+ ./rebar delete-deps
+ ./rebar get-deps
+
clean:
./rebar clean
-TESTS=""
.PHONY: test
+
+DEPS=$(notdir $(wildcard deps/*))
+
+TESTS=""
test:
ifeq ($(TESTS), "")
- ./rebar eunit
+ ./rebar -j1 eunit skip_deps=true
else
- ./rebar eunit suite=$(TESTS)
+ ./rebar -j1 eunit suite=$(TESTS) skip_deps=true
endif
.PHONY: doc
doc:
./rebar doc
-
-shell: compile
- erl -pa .eunit -pa ebin -s modlib_reloader
View
BIN rebar
Binary file not shown.
View
@@ -1,3 +1,2 @@
%%% -*-erlang-*-
-{lib_dirs, [".."]}.
{erl_opts, [{src_dirs, ["examples"]}]}.
View
@@ -0,0 +1,8 @@
+compile:
+ cd .. && make compile
+
+clean:
+ cd .. && make clean
+
+test:
+ cd .. && make test

0 comments on commit 7457f3e

Please sign in to comment.