2012-10-27 20:44:27 +00:00
|
|
|
.PHONY: deps test
|
|
|
|
|
2013-07-27 15:28:26 +00:00
|
|
|
ifeq ($(id),)
|
|
|
|
export id=cache
|
|
|
|
endif
|
|
|
|
|
|
|
|
FLAGS=\
|
|
|
|
-name ${id}@127.0.0.1 \
|
|
|
|
-setcookie nocookie \
|
|
|
|
-pa ./deps/*/ebin \
|
|
|
|
-pa ./examples/*/ebin \
|
|
|
|
-pa ./ebin \
|
|
|
|
+K true +A 160 -sbt ts
|
|
|
|
|
2013-04-16 09:15:14 +00:00
|
|
|
BB=../basho_bench
|
|
|
|
|
2012-10-27 20:44:27 +00:00
|
|
|
all: rebar deps compile
|
|
|
|
|
|
|
|
compile:
|
|
|
|
./rebar compile
|
|
|
|
|
|
|
|
deps:
|
|
|
|
./rebar get-deps
|
|
|
|
|
|
|
|
clean:
|
|
|
|
./rebar clean
|
|
|
|
rm -rf test.*-temp-data
|
|
|
|
|
2014-11-22 10:34:13 +00:00
|
|
|
distclean: clean
|
2012-10-27 20:44:27 +00:00
|
|
|
./rebar delete-deps
|
|
|
|
|
|
|
|
test: all
|
|
|
|
./rebar skip_deps=true eunit
|
|
|
|
|
|
|
|
docs:
|
|
|
|
./rebar skip_deps=true doc
|
|
|
|
|
|
|
|
dialyzer: compile
|
|
|
|
@dialyzer -Wno_return -c ./ebin
|
|
|
|
|
|
|
|
run:
|
2013-07-27 15:28:26 +00:00
|
|
|
erl ${FLAGS}
|
2012-10-27 20:44:27 +00:00
|
|
|
|
|
|
|
rebar:
|
2014-11-22 10:34:13 +00:00
|
|
|
curl -O https://cloud.github.com/downloads/basho/rebar/rebar
|
2012-10-27 20:44:27 +00:00
|
|
|
chmod ugo+x rebar
|
|
|
|
|
2013-04-16 09:15:14 +00:00
|
|
|
benchmark:
|
2014-06-27 16:56:39 +00:00
|
|
|
$(BB)/basho_bench -N bb@127.0.0.0 -C nocookie priv/${id}.benchmark
|
2013-04-16 09:15:14 +00:00
|
|
|
$(BB)/priv/summary.r -i tests/current
|
|
|
|
open tests/current/summary.png
|
|
|
|
|