|
|
@@ -2,6 +2,10 @@ define delete-files
|
|
|
python3 -c "import shutil;shutil.rmtree('$(1)', ignore_errors=True)"
|
|
|
endef
|
|
|
|
|
|
+BUF_VERSION := v1.72.0
|
|
|
+GOLANGCI_LINT_VERSION := v2.13.2
|
|
|
+PROTOC_GEN_GO_VERSION := v1.36.12
|
|
|
+
|
|
|
compile-currentenv:
|
|
|
go build
|
|
|
|
|
|
@@ -10,14 +14,10 @@ prep:
|
|
|
go generate ./...
|
|
|
|
|
|
compile-armhf:
|
|
|
- go env -w GOARCH=arm GOARM=6
|
|
|
- go build -o OliveTin.armhf
|
|
|
- go env -u GOARCH GOARM
|
|
|
+ GOOS=linux GOARCH=arm GOARM=6 go build -o OliveTin.armhf
|
|
|
|
|
|
compile-x64-lin:
|
|
|
- go env -w GOOS=linux
|
|
|
- go build -o OliveTin
|
|
|
- go env -u GOOS
|
|
|
+ GOOS=linux GOARCH=amd64 go build -o OliveTin
|
|
|
|
|
|
compile-x64-win: windows-resources
|
|
|
GOOS=windows GOARCH=amd64 go build -o OliveTin.exe
|
|
|
@@ -55,11 +55,12 @@ find-flakey-tests-inf:
|
|
|
go run ./scripts/find-flakey-tests-inf
|
|
|
|
|
|
go-tools:
|
|
|
- go install "github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2"
|
|
|
+ go install "github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)"
|
|
|
+
|
|
|
+proto-tools:
|
|
|
+ go install "github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION)"
|
|
|
+ go install "google.golang.org/protobuf/cmd/protoc-gen-go@$(PROTOC_GEN_GO_VERSION)"
|
|
|
|
|
|
-.PHONY: codestyle go-tools unittests unittests-fast unittests-race find-flakey-tests find-flakey-tests-inf
|
|
|
+go-tools-all: go-tools proto-tools
|
|
|
|
|
|
-go-tools-all:
|
|
|
- go install "github.com/bufbuild/buf/cmd/buf"
|
|
|
- go install "github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2"
|
|
|
- go install "google.golang.org/protobuf/cmd/protoc-gen-go"
|
|
|
+.PHONY: codestyle go-tools proto-tools go-tools-all unittests unittests-fast unittests-race find-flakey-tests find-flakey-tests-inf
|