woody_erlang/Makefile

46 lines
801 B
Makefile
Raw Normal View History

2016-04-14 07:40:33 +00:00
REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
2016-06-26 17:42:40 +00:00
.PHONY: compile test xref lint check_format format clean distclean dialyze cover bench
2016-06-26 17:42:40 +00:00
compile:
2016-06-26 17:42:40 +00:00
$(REBAR) compile
test:
$(REBAR) eunit
2016-04-14 07:40:33 +00:00
$(REBAR) ct
xref:
2016-04-14 07:40:33 +00:00
$(REBAR) xref
lint:
$(REBAR) lint
2016-06-26 17:42:40 +00:00
check_format:
$(REBAR) fmt -c
format:
$(REBAR) fmt -w
2016-04-14 07:40:33 +00:00
clean:
$(REBAR) clean
$(REBAR) as test clean
$(REBAR) as prod clean
2016-04-14 07:40:33 +00:00
distclean:
rm -rf test/woody_test_thrift.?rl test/.rebar3
rm -rfv _build
2016-04-14 07:40:33 +00:00
dialyze:
$(REBAR) as test dialyzer
2016-06-26 17:42:40 +00:00
cover:
$(REBAR) cover
$(REBAR) covertool generate
bench:
$(REBAR) as test bench -m bench_woody_event_handler -n 1000
$(REBAR) as test bench -m bench_woody_formatter -n 10
erl -pa _build/test/lib/*/ebin _build/test/lib/woody/test -noshell \
-s benchmark_memory_pressure run \
-s erlang halt