2011-08-08 20:28:40 +00:00
|
|
|
|
2011-11-28 17:37:59 +00:00
|
|
|
ERL ?=erl
|
2011-11-28 20:59:57 +00:00
|
|
|
CT_RUN ?=ct_run
|
2011-11-28 17:37:59 +00:00
|
|
|
ERL_FLAGS ?=+A10
|
|
|
|
REBAR_FLAGS :=
|
2011-07-18 06:59:48 +00:00
|
|
|
|
2011-11-30 19:44:39 +00:00
|
|
|
all: deps compile
|
|
|
|
|
|
|
|
deps:
|
|
|
|
$(REBAR) get-deps
|
|
|
|
|
|
|
|
compile: $(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-30 19:44:39 +00:00
|
|
|
@ $(REBAR) $(REBAR_FLAGS) eunit app=bdberl
|
|
|
|
@ $(REBAR) $(REBAR_FLAGS) ct app=bdberl
|
2011-08-08 20:28:40 +00:00
|
|
|
|
2011-11-28 20:59:57 +00:00
|
|
|
thrash-test:
|
|
|
|
@ $(CT_RUN) -pa test/ -suite thrash_SUITE
|
|
|
|
|
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
|
2011-11-30 19:44:39 +00:00
|
|
|
$(REBAR) delete-deps
|
2011-11-28 19:08:27 +00:00
|
|
|
-make -C c_src clean
|
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-11-28 23:39:53 +00:00
|
|
|
|
|
|
|
.EXPORT_ALL_VARIABLES:
|