23 lines
932 B
Makefile
23 lines
932 B
Makefile
# generate-graphql: src/delivery/graphql/generated.go ui/lib/api/schema.graphql
|
|
|
|
# src/delivery/graphql/generated.go: .gqlgen.yml cmd/generate-graphql/* $(shell find ../graphql -type f)
|
|
# go run cmd/generate-graphql/main.go
|
|
|
|
# ../ui/lib/api/schema.graphql: src/delivery/graphql/* cmd/generate-graphql-schema/*
|
|
# go run cmd/generate-graphql-schema/main.go $@
|
|
|
|
|
|
# src/delivery/grpc/pb/%.pb.go: proto/%.proto
|
|
# protoc --go_opt=paths=source_relative --go_out=$@ $<
|
|
|
|
# generate-grpc: src/delivery/grpc/pb/tstor.pb.go
|
|
|
|
|
|
# TODO add gprc-gateway when it updated to support editions
|
|
# --grpc-gateway_out=src/delivery/grpc/pb --grpc-gateway_opt=paths=source_relative --grpc-gateway_opt=generate_unbound_methods=true \
|
|
|
|
# generate-grpc: proto/*.proto proto/*/*.proto
|
|
# protoc -I=proto \
|
|
# --go_out=src/delivery/grpc/pb --go_opt=paths=source_relative \
|
|
# --go-grpc_out=src/delivery/grpc/pb --go-grpc_opt=paths=source_relative \
|
|
# $^
|