-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
47 lines (35 loc) · 934 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
.PHONY: deps
REBAR=./rebar
RIAK_MOD_DIR=/tmp/riak
all: deps compile modules
modules:
@cd apps/csd_core/riak_modules \
&& erlc *.erl \
&& mkdir -p ${RIAK_MOD_DIR} \
&& cp ./*.beam ${RIAK_MOD_DIR}
compile: modules
@$(REBAR) compile
app: modules
@$(REBAR) compile skip_deps=true
depmod:
@~/code/riak/dev/dev1/bin/riak-admin erl-reload \
&& ~/code/riak/dev/dev2/bin/riak-admin erl-reload \
&& ~/code/riak/dev/dev3/bin/riak-admin erl-reload \
&& ~/code/riak/dev/dev4/bin/riak-admin erl-reload
deps:
@$(REBAR) get-deps
clean:
@$(REBAR) clean
distclean: clean
@$(REBAR) delete-deps
test: app
@$(REBAR) eunit skip_deps=true
webstart: app
@exec erl -pa $(PWD)/apps/*/ebin -pa $(PWD)/deps/*/ebin -boot start_sasl \
-config $(PWD)/apps/csd_web/priv/app.config \
-config $(PWD)/apps/csd_core/priv/app.config \
-s reloader \
-s csd_core \
-s csd_web
proxystart:
@haproxy -f $(PWD)/priv/dev.haproxy.conf