github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/cmd/protoc-gen-openapi/Makefile (about) 1 default: build 2 3 .PHONY: build 4 build: 5 @echo "Generating binary (protoc-gen-openapi) ..." 6 @mkdir -p bin 7 @go build -o bin/protoc-gen-openapi 8 9 .PHONY: fmt 10 fmt: 11 @gofmt -s -w . 12 13 .PHONY: install 14 install: 15 @GO111MODULE=on go install 16 17 18 PROTO_PATH ?= "converter/testdata/proto" 19 .PHONY: samples 20 samples: 21 @ # Generate a spec for the Micro signup proto: 22 @PATH=./bin:$$PATH protoc --openapi_out=. --proto_path=../../proto/signup ../../proto/signup/signup.proto 23 @ # Generate a spec for the sample version of our own Micro signup proto (with a different service name): 24 @PATH=./bin:$$PATH protoc --openapi_out=service=signuptest:. --proto_path=./converter/testdata/proto ./converter/testdata/proto/signup.proto