机舱采集器——不在使用

This commit is contained in:
张鹏
2024-11-19 17:19:21 +08:00
parent 813ab44f75
commit 41a0ea682f
1266 changed files with 926903 additions and 250 deletions

View File

@@ -0,0 +1,27 @@
BUILD_DIR = build
SERVICES = gateway-ui
CGO_ENABLED ?= 0
# GOARCH ?= "amd64"
GOARCH ?= arm64
GOOS ?= linux
# GOARM ?= 7
define compile_service
CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go build -ldflags "-s -w" -o ${BUILD_DIR}/$(1) main.go
endef
all: $(SERVICES)
.PHONY: all $(SERVICES)
clean:
rm -rf ${BUILD_DIR}
install:
cp ${BUILD_DIR}/* $(GOBIN)
test:
go test -v -race -count 1 -tags test $(shell go list ./... | grep -v 'vendor\|cmd')
$(SERVICES):
$(call compile_service,$(@))