-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
50 lines (34 loc) · 1.08 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
## -*- mode: Makefile; fill-column: 80; -*-
REBAR ?= $(shell which rebar 2> /dev/null || which ./rebar)
.PHONY: all clean compile
.PHONY: test eunit xref dialyze
.PHONY: release release_patch release_minor release_major
all: compile
clean:
@find . -name "*~" -exec rm {} \;
@$(REBAR) clean
compile:
@$(REBAR) compile
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:
@$(REBAR) compile eunit skip_deps=true
xref:
@$(REBAR) compile xref skip_deps=true
~/.dialyzer_plt:
-dialyzer --output_plt ${@} --build_plt \
--apps erts kernel stdlib crypto ssl public_key inets \
eunit xmerl compiler runtime_tools mnesia syntax_tools
dialyze: compile ~/.dialyzer_plt
$(shell [ -d .eunit ] && rm -rf .eunit)
dialyzer ebin -nn --plt ~/.dialyzer_plt