-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (38 loc) · 974 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
ERLFLAGS= -pa $(CURDIR)/.eunit -pa $(CURDIR)/ebin -pa $(CURDIR)/deps/*/ebin
DEPS_PLT=$(CURDIR)/.deps_plt
DEPS=erts kernel stdlib
ERL=erl
REBAR=./rebar
.PHONY: all compile doc clean test deps dialyzer typer shell distclean pdf \
update-deps
all: deps compile
deps:
$(REBAR) get-deps
$(REBAR) compile
update-deps:
$(REBAR) update-deps
$(REBAR) compile
compile:
$(REBAR) skip_deps=true compile
doc:
$(REBAR) skip_deps=true doc
test:
$(REBAR) skip_deps=true eunit
$(DEPS_PLT):
@echo Building local plt at $(DEPS_PLT)
@echo
dialyzer --output_plt $(DEPS_PLT) --build_plt \
--apps $(DEPS) -r deps
dialyzer: $(DEPS_PLT)
dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin
shell: deps compile
# - @$(REBAR) skip_deps=true eunit
@$(ERL) $(ERLFLAGS)
clean:
- rm -rf $(CURDIR)/test/*.beam
# - rm -rf $(CURDIR)/logs
# - rm -rf $(CURDIR)/ebin
$(REBAR) skip_deps=true clean
distclean: clean
- rm -rf $(DEPS_PLT)
- rm -rvf $(CURDIR)/deps