-
Notifications
You must be signed in to change notification settings - Fork 2
/
GNUmakefile
59 lines (39 loc) · 978 Bytes
/
GNUmakefile
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
# Standard Erlang Makefile
REBAR=./rebar
PLT=./.plt
suite=$(if $(SUITE), suite=$(SUITE), )
# Basics ###############################################################
.PHONY: all deps compile get-deps update-deps doc clean distclean
all: deps compile
deps: get-deps update-deps
compile:
$(REBAR) compile
get-deps:
$(REBAR) get-deps
update-deps:
$(REBAR) update-deps
doc:
$(REBAR) doc
clean:
$(REBAR) clean
$(RM) doc/*
distclean: clean
$(REBAR) delete-deps
# Utilities ############################################################
.PHONY: repl eunit_repl
repl:
erl -pa ebin deps/*/ebin
eunit_repl:
erl -pa .eunit deps/*/ebin
# Test Suite ###########################################################
.PHONY: test eunit xref plt dialyzer
test: eunit
eunit:
$(REBAR) eunit $(suite) skip_deps=true
xref:
$(REBAR) xref skip_deps=true
plt: compile
dialyzer --build_plt --output_plt $(PLT) ebin deps/*/ebin
dialyzer: compile
dialyzer --plt $(PLT) ebin
# eof