Files
cc-connect/Makefile
T
chenhg5andClaude 3b097a80cb init
Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-28 10:38:24 +08:00

21 lines
361 B
Makefile

BINARY := cc-connect
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
LDFLAGS := -ldflags "-s -w -X main.version=$(VERSION)"
.PHONY: build run clean test lint
build:
go build $(LDFLAGS) -o $(BINARY) ./cmd/cc-connect
run: build
./$(BINARY)
clean:
rm -f $(BINARY)
test:
go test -v ./...
lint:
golangci-lint run ./...