mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-22 14:32:24 +00:00
d170c7dd79
All these files can be generated using the `make api` command and there is no real need to commit these into the repo. Only the api/go files need to be comitted of how the Go import system works. This also updates the Rust, Go, JS and gRPC-web (JS) code generation and UI build to use the nix-shell environment instead of using Docker.
38 lines
1.1 KiB
Makefile
Vendored
38 lines
1.1 KiB
Makefile
Vendored
.PHONY: requirements common gw api integration stream
|
|
|
|
PROTOC_ARGS := -I=../proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative
|
|
|
|
all: requirements common gw api integration stream
|
|
|
|
requirements:
|
|
go mod download
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
|
|
|
common:
|
|
protoc ${PROTOC_ARGS} common/common.proto
|
|
|
|
gw:
|
|
protoc ${PROTOC_ARGS} gw/gw.proto
|
|
|
|
api:
|
|
protoc ${PROTOC_ARGS} api/internal.proto
|
|
protoc ${PROTOC_ARGS} api/user.proto
|
|
protoc ${PROTOC_ARGS} api/tenant.proto
|
|
protoc ${PROTOC_ARGS} api/application.proto
|
|
protoc ${PROTOC_ARGS} api/device_profile.proto
|
|
protoc ${PROTOC_ARGS} api/device_profile_template.proto
|
|
protoc ${PROTOC_ARGS} api/device.proto
|
|
protoc ${PROTOC_ARGS} api/gateway.proto
|
|
protoc ${PROTOC_ARGS} api/multicast_group.proto
|
|
protoc ${PROTOC_ARGS} api/relay.proto
|
|
|
|
integration:
|
|
protoc ${PROTOC_ARGS} integration/integration.proto
|
|
|
|
stream:
|
|
protoc ${PROTOC_ARGS} stream/meta.proto
|
|
protoc ${PROTOC_ARGS} stream/frame.proto
|
|
protoc ${PROTOC_ARGS} stream/api_request.proto
|
|
protoc ${PROTOC_ARGS} stream/backend_interfaces.proto
|