Skip to content

Commit

Permalink
fix: makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
GGXXLL committed Jun 20, 2022
1 parent c34e568 commit f8c4eb8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
18 changes: 8 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ VERSION_DATE := $(shell $(MAKEFILE_PATH)/commit_date.sh)
default: truss

dependencies:
go get -u google.golang.org/protobuf
go get -u google.golang.org/genproto
go get -u github.com/gogo/protobuf/proto
go install github.com/gogo/protobuf/protoc-gen-gogo
go install github.com/gogo/protobuf/protoc-gen-gogofaster
go install github.com/gogo/protobuf/protoc-gen-gofast
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/protobuf/cmd/protoc-gen-go
go install github.com/envoyproxy/protoc-gen-validate
go get -u github.com/gogo/protobuf/protoc-gen-gogo
go get -u github.com/gogo/protobuf/protoc-gen-gogofaster
go get -u github.com/gogo/protobuf/protoc-gen-gofast
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
go get -u github.com/envoyproxy/protoc-gen-validate

# Install truss
truss:
Expand Down
18 changes: 8 additions & 10 deletions wininstall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ FOR /F "tokens=* USEBACKQ" %%F IN (`%DATE_FMT_CMD%`) DO (
@ECHO ON
go get github.com/pauln/go-datefmt

go get -u google.golang.org/protobuf
go get -u google.golang.org/genproto
go get -u github.com/gogo/protobuf/proto
go install github.com/gogo/protobuf/protoc-gen-gogo
go install github.com/gogo/protobuf/protoc-gen-gogofaster
go install github.com/gogo/protobuf/protoc-gen-gofast
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/protobuf/cmd/protoc-gen-go
go install github.com/envoyproxy/protoc-gen-validate
go get -u github.com/gogo/protobuf/protoc-gen-gogo
go get -u github.com/gogo/protobuf/protoc-gen-gogofaster
go get -u github.com/gogo/protobuf/protoc-gen-gofast
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
go get -u github.com/envoyproxy/protoc-gen-validate

go install -ldflags "-X 'main.version=%SHA%' -X 'main.date=%HEAD_DATE%'" github.com/DoNewsCode/truss/cmd/truss
@ECHO OFF

0 comments on commit f8c4eb8

Please sign in to comment.