-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
48 lines (33 loc) · 1.01 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
REBAR := ./rebar
FIX := ./fix_vsn.sh
DIALYZER := dialyzer
DIALYZER_APPS := kernel stdlib sasl inets crypto public_key ssl
ERL_LIBS=deps
APP := draw
APPTGZ := draw-`sh ./rel_vsn.sh`.tar.gz
.PHONY: deps test rel
all: app
cb_admin:
@cd apps/cb_admin && env ERL_LIBS=$(ERL_LIBS) $(REBAR) boss c=compile
draw:
@cd apps/draw && env ERL_LIBS=$(ERL_LIBS) $(REBAR) boss c=compile
app: deps cb_admin draw
deps: $(REBAR)
@$(REBAR) get-deps compile
clean: $(REBAR)
@$(REBAR) clean
rel: app
@cd rel && ../$(FIX) && ../$(REBAR) generate
dist: rel
@mkdir -p dist && tar -zcf dist/$(APPTGZ) -C rel $(APP)
test: $(REBAR) app
@$(REBAR) eunit skip_deps=true suites=$(SUITE)
ct: $(REBAR)
@$(REBAR) ct skip_deps=true
build-plt:
@$(DIALYZER) --build_plt --output_plt .draw_dialyzer.plt --apps $(DIALYZER_APPS)
dialyze:
@$(DIALYZER) --src src --plt .draw_dialyzer.plt -Werror_handling \
-Wrace_conditions -Wunmatched_returns # -Wunderspecs
docs: $(REBAR)
./deps/edown/edown_make -config priv/edown.config -pa deps/edown/ebin