-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 668 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 668 Bytes
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
REBAR=$(shell which rebar || echo ./rebar)
default: fast
all: $(REBAR)
$(REBAR) get-deps
$(REBAR) compile
normal:
$(REBAR) compile
fast:
$(REBAR) compile skip_deps=true
clean: $(REBAR)
$(REBAR) clean
make distclean
tests: $(REBAR)
$(REBAR) eunit
sh: normal
erl -pa ebin/ -pa deps/*/ebin -eval "c:m(git)."
# Detect or download rebar
REBAR_URL=http://cloud.github.com/downloads/basho/rebar/rebar
./rebar:
erl -noshell -s inets -s ssl \
-eval 'httpc:request(get, {"$(REBAR_URL)", []}, [], [{stream, "./rebar"}])' \
-s init stop
chmod +x ./rebar
distclean:
rm -f ./rebar
# For update code
up:
git fetch
git checkout origin/master
make all