bdberl/Makefile

38 lines
592 B
Makefile
Raw Permalink Normal View History

ERL ?=erl
2011-11-28 20:59:57 +00:00
CT_RUN ?=ct_run
ERL_FLAGS ?=+A10
REBAR_FLAGS :=
2011-11-30 19:44:39 +00:00
all: deps compile
deps:
$(REBAR) get-deps
compile: $(BDB_LOCAL_LIB)
ERL_FLAGS=$(ERL_FLAGS) $(REBAR) $(REBAR_FLAGS) compile
test: tests
tests:
2011-11-30 19:44:39 +00:00
@ $(REBAR) $(REBAR_FLAGS) eunit app=bdberl
@ $(REBAR) $(REBAR_FLAGS) ct app=bdberl
2011-11-28 20:59:57 +00:00
thrash-test:
@ $(CT_RUN) -pa test/ -suite thrash_SUITE
clean:
$(REBAR) $(REBAR_FLAGS) clean
2011-07-18 11:47:57 +00:00
-rm test/*.beam
2011-07-17 19:50:40 +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
-rm -rf c_src/sources
-rm -rf priv
2011-07-18 07:28:38 +00:00
-rm -rf logs
include rebar.mk
.EXPORT_ALL_VARIABLES: