feat: initialize Go agent module with config, Makefile and project structure

This commit is contained in:
Claude Agent
2026-03-19 12:08:00 +01:00
parent 0714961dd6
commit d9d0804361
5 changed files with 90 additions and 0 deletions

17
Agent/Makefile Normal file
View File

@@ -0,0 +1,17 @@
.PHONY: build build-windows build-linux clean
BINARY=nexus-agent
VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
LDFLAGS=-ldflags "-s -w -X main.version=$(VERSION)"
build:
go build $(LDFLAGS) -o bin/$(BINARY) ./cmd/agent
build-windows:
GOOS=windows GOARCH=amd64 go build $(LDFLAGS) -o bin/$(BINARY).exe ./cmd/agent
build-linux:
GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -o bin/$(BINARY)-linux ./cmd/agent
clean:
rm -rf bin/