-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 728 Bytes
/
Makefile
File metadata and controls
36 lines (24 loc) · 728 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
DIALYZER_OPTS = -Wrace_conditions
all: deps compile
deps:
rebar get-deps
DEPSOLVER_PLT=$(CURDIR)/.depsolver_plt
ERLANG_APPS=erts kernel stdlib crypto public_key mnesia ssl
# Be sure the compile first before running this or the deps
# directory won't be scanned by dialyzer.
$(DEPSOLVER_PLT):
dialyzer --output_plt $(DEPSOLVER_PLT) --build_plt \
--apps $(ERLANG_APPS) -r deps
dialyzer: $(DEPSOLVER_PLT)
dialyzer --plt $(DEPSOLVER_PLT) $(DIALYZER_OPTS) --src src
typer: $(DEPSOLVER_PLT)
typer --plt $(DEPSOLVER_PLT) -r ./src
compile:
rebar compile escriptize
test:
tests/test.sh
clean:
rebar clean
destclean: clean
-rm -fr deps ebin $(DEPSOLVER_PLT)
.PHONY: dialyzer typer clean distclean deps compile