-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 734 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
REBAR ?= rebar
ifneq ($(wildcard rebar),)
REBAR := ./rebar
endif
.PHONY: clean test docs benchmark docsclean go quick dialyzer
all: get-deps compile
get-deps:
$(REBAR) get-deps
compile:
$(REBAR) compile
$(REBAR) xref skip_deps=true
quick:
$(REBAR) compile xref skip_deps=true
clean:
$(REBAR) clean
test:
$(REBAR) skip_deps=true eunit
test/%:
$(REBAR) skip_deps=true eunit suites=$*
docs: docsclean
ln -s . doc/doc
$(REBAR) skip_deps=true doc
docsclean:
rm -f doc/*.html doc/*.css doc/erlang.png doc/edoc-info doc/doc
go:
ERL_LIBS=.:deps erl -name spapi_router -s spr_app ${EXTRA_ARGS}
dialyzer:
dialyzer -c ebin/ -Wunmatched_returns -Werror_handling -Wrace_conditions \
| fgrep -v -f dialyzer.ignore-warnings