-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
56 lines (41 loc) · 1.02 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
.PHONY: compile rel cover test typecheck doc ci
REBAR=./rebar3
SHORTSHA=`git rev-parse --short HEAD`
PKG_NAME_VER=${SHORTSHA}
OS_NAME=$(shell uname -s)
grpc_services_directory=src/grpc/autogen
ifeq (${OS_NAME},FreeBSD)
make="gmake"
else
MAKE="make"
endif
compile:
$(REBAR) compile
$(REBAR) format
shell:
$(REBAR) shell
clean:
rm -rf $(grpc_services_directory)
$(REBAR) clean
cover:
$(REBAR) cover
test:
$(REBAR) as test do ct
ci:
$(REBAR) do dialyzer,xref && $(REBAR) as test do eunit,ct,cover
$(REBAR) covertool generate
codecov --required -f _build/test/covertool/sibyl.covertool.xml
typecheck:
$(REBAR) dialyzer
doc:
$(REBAR) edoc
grpc: | $(grpc_services_directory)
@echo "generating grpc services"
REBAR_CONFIG="config/grpc_server_gen.config" $(REBAR) grpc gen
REBAR_CONFIG="config/grpc_client_gen.config" $(REBAR) grpc gen
clean_grpc:
@echo "cleaning grpc services"
rm -rf $(grpc_services_directory)
$(grpc_services_directory):
@echo "grpc service directory $(directory) does not exist"
$(REBAR) get-deps