forked from rustyio/sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 955 Bytes
/
Makefile
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
compile:
./rebar compile
clean:
./rebar clean
DEPS_PLT=$(CURDIR)/.deps_plt
DEPS=erts kernel stdlib sasl compiler crypto hipe syntax_tools
# removed 'sasl' in attempt to minimize memory usage for Travis
$(DEPS_PLT):
@echo Building local plt at $(DEPS_PLT)
@echo
@(dialyzer --output_plt $(DEPS_PLT) --build_plt --apps $(DEPS))
dialyzer: compile $(DEPS_PLT)
@(dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin)
dialyzer-no-race: compile $(DEPS_PLT)
@(dialyzer --fullpath --plt $(DEPS_PLT) -r ./ebin)
# TRAVIS-CI STUFF
ERLANG_VERSION_CHECK := erl -eval "io:format(\"~s\",[erlang:system_info(otp_release)]), halt()." -noshell
ERLANG_VERSION = $(shell $(ERLANG_VERSION_CHECK))
# This is primarily for Travis build testing, as each build instruction will overwrite the previous
travis: $(ERLANG_VERSION)
R15B: dialyzer
R15B01: dialyzer
R15B02: dialyzer-no-race
R15B03: dialyzer
R16B: dialyzer
R16B01: dialyzer
R16B02: dialyzer