Update makefile with more echos
This commit is contained in:
parent
2c6aba6897
commit
771c95da14
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -1,17 +1,20 @@
|
|||
VERSION := $(shell git describe --always --long --dirty --tags)
|
||||
|
||||
build:
|
||||
@echo Running no-output build
|
||||
go mod download
|
||||
go build -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
|
||||
|
||||
install:
|
||||
@echo Installing to GOPATH
|
||||
go mod download
|
||||
go install -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=${VERSION}'" ./...
|
||||
|
||||
gen:
|
||||
@echo Generating rove server gRPC
|
||||
@echo Generating rove server gRPC and gateway
|
||||
protoc --proto_path proto --go_out=plugins=grpc:pkg/ --go_opt=paths=source_relative proto/rove/rove.proto
|
||||
protoc --proto_path proto --grpc-gateway_out=paths=source_relative:pkg/ proto/rove/rove.proto
|
||||
@echo Generating rove server swagger
|
||||
protoc --proto_path proto --swagger_out=logtostderr=true:pkg/ proto/rove/rove.proto
|
||||
|
||||
test:
|
||||
|
|
Loading…
Add table
Reference in a new issue