2022-04-06 20:18:32 +00:00
|
|
|
.PHONY: common api google-api
|
|
|
|
|
2024-04-01 13:27:15 +00:00
|
|
|
|
|
|
|
PROTOC_PATH := ./node_modules/grpc-tools/bin/protoc
|
|
|
|
PROTOC_ARGS := -I=../proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:.
|
2022-04-06 20:18:32 +00:00
|
|
|
|
2023-01-09 12:04:10 +00:00
|
|
|
all: requirements common gw api integration google-api
|
|
|
|
|
|
|
|
requirements:
|
|
|
|
yarn install
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
common:
|
|
|
|
mkdir -p common
|
2024-04-01 13:27:15 +00:00
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/common/common.proto
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
gw:
|
|
|
|
mkdir -p gw
|
2024-04-01 13:27:15 +00:00
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/gw/gw.proto
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
api:
|
|
|
|
mkdir -p api
|
2024-04-01 13:27:15 +00:00
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/internal.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/user.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/tenant.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/application.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/device_profile.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/device_profile_template.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/device.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/gateway.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/multicast_group.proto
|
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/api/relay.proto
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
integration:
|
|
|
|
mkdir -p integration
|
2024-04-01 13:27:15 +00:00
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/integration/integration.proto
|
2022-04-06 20:18:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
google-api:
|
2024-04-01 13:27:15 +00:00
|
|
|
$(PROTOC_PATH) $(PROTOC_ARGS) ../proto/google/api/*.proto
|