38 lines
682 B
Makefile
38 lines
682 B
Makefile
# You must use the current protoc-gen-go
|
|
#
|
|
# go-clone --go-src google.golang.org/protobuf
|
|
# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go
|
|
# go install
|
|
|
|
|
|
all: forgeConfig.pb.go vet
|
|
|
|
vet:
|
|
@GO111MODULE=off go vet
|
|
@echo this go library package builds okay
|
|
|
|
# autofixes your import headers in your golang files
|
|
goimports:
|
|
goimports -w *.go
|
|
make -C forgeConfig goimports
|
|
|
|
redomod:
|
|
rm -f go.*
|
|
GO111MODULE= go mod init
|
|
GO111MODULE= go mod tidy
|
|
go mod edit -go=1.20
|
|
|
|
clean:
|
|
rm -f *.pb.go
|
|
-rm -f go.*
|
|
make -C forgeConfig clean
|
|
|
|
build:
|
|
make -C forgeConfig
|
|
|
|
install:
|
|
make -C forgeConfig install
|
|
|
|
forgeConfig.pb.go: forgeConfig.proto
|
|
autogenpb --proto forgeConfig.proto
|