-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
57 lines (43 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
PROJECT = moni
DIALYZER = dialyzer
REBAR = rebar
TAR = tar
CD = cd
REPO = ../../../../repository
REPOSRC = ../../repository
TARGET = ~/projects/erlang
all: app
tar: app
$(CD) rel; tar cvf $(REPO)/$(PROJECT).$(VERSION).tar $(PROJECT)
tarall: app
$(CD) ..; $(TAR) cf $(REPOSRC)/$(PROJECT).src.$(VERSION).tar $(PROJECT) --exclude .git/* --exclude log/* --exclude apps/$(PROJECT)/priv/accounts.conf
cpall: tarall
$(CD) ..;scp $(REPOSRC)/$(PROJECT).src.$(VERSION).tar $(USR)@$(HOST):~/projects/erlang
ssh $(USR)@$(HOST) 'cd $(TARGET); tar xf $(TARGET)/$(PROJECT).src.$(VERSION).tar'
cp: tar
@$(CD) ..;scp $(REPOSRC)/$(PROJECT).$(VERSION).tar $(USR)@$(HOST):~/projects/erlang
release: app
@$(REBAR) generate
app: deps
@$(REBAR) compile
deps:
@$(REBAR) get-deps
clean:
@$(REBAR) clean
rm -f test/*.beam
rm -f erl_crash.dump
rm -f log/*
tests: clean app eunit ct
eunit:
@$(REBAR) eunit skip_deps=true
ct:
@$(REBAR) ct
build-plt:
@$(DIALYZER) --build_plt --output_plt .ct_dialyzer.plt \
--apps kernel stdlib sasl inets crypto public_key ssl
dialyze:
@$(DIALYZER) --src src --plt .sue_dialyzer.plt \
-Wbehaviours -Werror_handling \
-Wrace_conditions -Wunmatched_returns # -Wunderspecs
docs:
@$(REBAR) doc skip_deps=true