This commit is contained in:
jimleerx
2026-01-28 13:13:58 +08:00
commit e605cd07bf
21 changed files with 5320 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
.PHONY: build clean install run
BINARY_NAME=mmw-agent
BUILD_DIR=build
build:
go build -o $(BUILD_DIR)/$(BINARY_NAME) ./cmd/mmw-agent
clean:
rm -rf $(BUILD_DIR)
install: build
cp $(BUILD_DIR)/$(BINARY_NAME) /usr/local/bin/
run:
go run ./cmd/mmw-agent
test:
go test ./...
vet:
go vet ./...
tidy:
go mod tidy