-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
59 lines (40 loc) · 1.22 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
## -*- mode: Makefile; fill-column: 80; comment-column: 67; -*-
REBAR ?= $(shell which rebar 2> /dev/null || which ./rebar)
.PHONY: all examples compile cnode clean test
.PHONY: release release_patch release_minor release_major
.PHONY: eunit xref dialyze
all: compile
examples:
make -C priv/examples
compile:
@$(REBAR) compile skip_deps=true
cnode:
make -C priv
generate:
make -C priv/generator
clean:
@find . -name "*~" -exec rm {} \;
@$(REBAR) clean
test: eunit xref dialyze
#############################################################################
## release stuff
release_major: test
./bin/release.sh major
release_minor: test
./bin/release.sh minor
release_patch: test
./bin/release.sh patch
release: release_patch
#############################################################################
## testing
eunit: compile
@$(REBAR) eunit skip_deps=true
xref: compile
@$(REBAR) xref skip_deps=true
dialyze: compile ~/.dialyzer_plt
$(shell [ -d .eunit ] && rm -rf .eunit)
dialyzer ebin -nn --plt ~/.dialyzer_plt
~/.dialyzer_plt:
-dialyzer --output_plt ${@} --build_plt \
--apps erts kernel stdlib crypto ssl public_key inets \
eunit xmerl compiler runtime_tools mnesia syntax_tools