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
|
|
|
|
2022-01-21 12:10:58 +00:00
|
|
|
.PHONY: compile test xref lint check_format format clean distclean dialyze cover bench
|
2016-06-26 17:42:40 +00:00
|
|
|
|
2022-01-21 12:10:58 +00:00
|
|
|
compile:
|
2016-06-26 17:42:40 +00:00
|
|
|
$(REBAR) compile
|
|
|
|
|
2022-01-21 12:10:58 +00:00
|
|
|
test:
|
2019-03-28 10:37:37 +00:00
|
|
|
$(REBAR) eunit
|
2016-04-14 07:40:33 +00:00
|
|
|
$(REBAR) ct
|
|
|
|
|
2022-01-21 12:10:58 +00:00
|
|
|
xref:
|
2016-04-14 07:40:33 +00:00
|
|
|
$(REBAR) xref
|
|
|
|
|
2022-01-21 12:10:58 +00:00
|
|
|
lint:
|
|
|
|
$(REBAR) lint
|
2016-06-26 17:42:40 +00:00
|
|
|
|
2021-01-15 12:35:41 +00:00
|
|
|
check_format:
|
|
|
|
$(REBAR) fmt -c
|
|
|
|
|
|
|
|
format:
|
|
|
|
$(REBAR) fmt -w
|
|
|
|
|
2016-04-14 07:40:33 +00:00
|
|
|
clean:
|
|
|
|
$(REBAR) clean
|
2019-06-20 15:00:29 +00:00
|
|
|
$(REBAR) as test clean
|
|
|
|
$(REBAR) as prod clean
|
2016-04-14 07:40:33 +00:00
|
|
|
|
|
|
|
distclean:
|
2021-05-21 10:28:56 +00:00
|
|
|
rm -rf test/woody_test_thrift.?rl test/.rebar3
|
|
|
|
rm -rfv _build
|
2016-04-14 07:40:33 +00:00
|
|
|
|
|
|
|
dialyze:
|
2019-07-05 13:31:58 +00:00
|
|
|
$(REBAR) as test dialyzer
|
2016-06-26 17:42:40 +00:00
|
|
|
|
2022-01-21 12:10:58 +00:00
|
|
|
cover:
|
|
|
|
$(REBAR) cover
|
|
|
|
$(REBAR) covertool generate
|
|
|
|
|
2019-12-11 16:07:16 +00:00
|
|
|
bench:
|
2019-12-31 09:52:56 +00:00
|
|
|
$(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
|