forked from leo-project/leofs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (56 loc) · 1.45 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
58
59
60
61
62
63
.PHONY: deps test
all: deps compile
compile:
@./rebar compile
deps:
@./rebar get-deps
clean:
@./rebar clean
make -C pkg clean
xref:
@./rebar xref
eunit:
@./rebar eunit
generate:
rm -rf rel/leo_manager/leo_manager/
rm -rf rel/leo_storage/leo_storage/
rm -rf rel/leo_gateway/leo_gateway/
@./rebar compile
(cd rel/leo_manager && ../../rebar generate)
(cd rel/leo_storage && ../../rebar generate)
(cd rel/leo_gateway && ../../rebar generate)
release:
@./rebar compile
rm -rf package/leo_*
##
## manager-master
##
rm -rf rel/leo_manager/leo_manager/
mkdir -p package/leo_manager_0
cp deps/leo_manager/priv/leo_manager_0.conf rel/leo_manager/files/leo_manager.conf
(cd rel/leo_manager && ../../rebar generate)
cp -r rel/leo_manager/leo_manager/* package/leo_manager_0/
##
## manager-slave
##
rm -rf rel/leo_manager/leo_manager/
mkdir -p package/leo_manager_1
cp deps/leo_manager/priv/leo_manager_1.conf rel/leo_manager/files/leo_manager.conf
(cd rel/leo_manager && ../../rebar generate)
cp -r rel/leo_manager/leo_manager/* package/leo_manager_1/
##
## storage
##
rm -rf rel/leo_storage/leo_storage/
mkdir -p package/leo_storage
(cd rel/leo_storage && ../../rebar generate)
cp -r rel/leo_storage/leo_storage/* package/leo_storage/
##
## gateway
##
rm -rf rel/leo_gateway/leo_gateway/
mkdir -p package/leo_gateway
(cd rel/leo_gateway && ../../rebar generate)
cp -r rel/leo_gateway/leo_gateway/* package/leo_gateway/
pkgsrc: release
make -C pkg