blob: 89b21291f01989eedf22ffbfdbee1209481f7e8b (
plain)
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
|
.PHONY: all deps compile setup clean doc
NAME=proto_json
export KVDB_BACKENDS=ets
SETUP_GEN=$(shell ./find_setup_gen.sh)
all: deps compile
deps:
rebar get-deps
compile:
rebar compile
recomp:
rebar compile skip_deps=true
setup:
ERL_LIBS=$(PWD)/deps:$(ERL_LIBS):$(PWD) \
$(SETUP_GEN) $(NAME) priv/setup.config setup
target:
ERL_LIBS=$(PWD)/deps:$(ERL_LIBS) \
$(SETUP_GEN) $(NAME) priv/setup.config setup -pz $(PWD)/ebin \
-target rel -vsn 0.1
run: setup
erl -boot setup/start -config setup/sys
doc:
REBAR_DOC=1 rebar skip_deps=true get-deps doc
clean:
rebar clean
|