-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 1.1 KB
/
Makefile
File metadata and controls
35 lines (27 loc) · 1.1 KB
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
PROTOC_CMD = protoc
PROTOC_ARGS = --proto_path=./api --go_opt=paths=source_relative --go_out=./inapi --go-grpc_out=./inapi ./api/*.proto
PROTOC_RUST_ARGS = --proto_path=./api --rust_out=experimental-codegen=enabled,kernel=cpp:./inapi ./api/*.proto
PROTOC_V2_ARGS = --proto_path=./v2/api/inapi --go_opt=paths=source_relative --go_out=./v2/inapi --go-grpc_out=./v2/inapi ./v2/api/inapi/*.proto
HTOML_TAG_FIX_CMD = htoml-tag-fix
HTOML_TAG_FIX_ARGS = ./inapi
LYNKAPI_FILTER_CMD = lynkapi-fitter
LYNKAPI_FILTER_V2_ARGS = v2/inapi
## RUNC_IMAGE=sysinner/incore-build:0.1
## RUNC_PLATFORM=--platform=linux/amd64
##
## RUNC_OK=$(docker images -q "${RUNC_IMAGE}" 2 >/dev/null)
.PHONY: api
api:
$(PROTOC_CMD) $(PROTOC_ARGS)
$(PROTOC_CMD) $(PROTOC_V2_ARGS)
# $(PROTOC_CMD) $(PROTOC_RUST_ARGS)
$(HTOML_TAG_FIX_CMD) $(HTOML_TAG_FIX_ARGS)
$(LYNKAPI_FILTER_CMD) $(LYNKAPI_FILTER_V2_ARGS)
.PHONY: api-in-runc
api-in-runc:
./build/build-runc.sh
## docker run --rm -it ${RUNC_PLATFORM} --user "$(shell id -u):$(shell id -g)" -v $(PWD):/build_path -w /build_path ${RUNC_IMAGE}
all: api
@echo ""
@echo "build complete"
@echo ""