2011-08-08 20:28:40 +00:00
|
|
|
|
2011-11-28 17:37:59 +00:00
|
|
|
ERL ?=erl
|
|
|
|
ERL_FLAGS ?=+A10
|
|
|
|
REBAR_FLAGS :=
|
2011-07-18 06:59:48 +00:00
|
|
|
|
|
|
|
all: $(BDB_LOCAL_LIB)
|
2011-11-28 17:37:59 +00:00
|
|
|
ERL_FLAGS=$(ERL_FLAGS) $(REBAR) $(REBAR_FLAGS) compile
|
2011-07-18 06:59:48 +00:00
|
|
|
|
2011-11-28 17:37:59 +00:00
|
|
|
test: tests
|
2011-08-08 20:28:40 +00:00
|
|
|
|
|
|
|
tests:
|
2011-11-28 17:37:59 +00:00
|
|
|
@ $(REBAR) $(REBAR_FLAGS) eunit ct
|
2011-08-08 20:28:40 +00:00
|
|
|
|
|
|
|
clean:
|
2011-07-18 06:59:48 +00:00
|
|
|
$(REBAR) $(REBAR_FLAGS) clean
|
2011-07-18 11:47:57 +00:00
|
|
|
-rm test/*.beam
|
2011-07-17 19:50:40 +00:00
|
|
|
|
2011-07-18 06:59:48 +00:00
|
|
|
distclean: clean
|
|
|
|
-rm -rf $(BDB_LOCAL_DIST)
|
2011-11-28 17:37:59 +00:00
|
|
|
-rm -rf c_src/sources
|
2011-07-18 06:59:48 +00:00
|
|
|
-rm -rf priv
|
2011-07-18 07:28:38 +00:00
|
|
|
-rm -rf logs
|
2011-11-28 17:37:59 +00:00
|
|
|
|
|
|
|
include rebar.mk
|
2011-08-09 16:15:08 +00:00
|
|
|
|