forked from nitrogen/nitrogen_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·66 lines (48 loc) · 1.56 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: test docs doc
all: compile
compile:
./rebar compile
dialyzer-deps-compile:
./rebar --config "rebar.dialyzer.config" get-deps
./rebar --config "rebar.dialyzer.config" compile
clean:
./rebar clean
docs:
utils/make_docs/make_docs.el
@(cd doc;perl add_disqus.pl)
doc: docs
eunit: clean compile
./rebar eunit
test:
mkdir -p test
rm -fr test/browsertest
$(MAKE) eunit
git clone git://github.com/nitrogen/NitrogenProject.com.git test/browsertest
mkdir -p test/browsertest/deps
ln -s ../../.. test/browsertest/deps/nitrogen_core
cd test/browsertest; make test_all TESTLOGDIR="../results.$(shell date +%Y-%m-%d.%H%M%S)"
DEPS_PLT=$(CURDIR)/.deps_plt
DEPS=erts kernel stdlib crypto sasl
# 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) -r ./deps)
dialyzer: dialyzer-deps-compile $(DEPS_PLT)
@(dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin)
dialyzer-no-race: dialyzer-deps-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: eunit $(ERLANG_VERSION)
R15B: dialyzer
R15B01: dialyzer
R15B02: dialyzer-no-race
R15B03: dialyzer
R16B: dialyzer
R16B01: dialyzer
R16B02: dialyzer
vim:
utils/vim-headers/add_vim.sh