hatch-surf/Makefile
Riley Zhang b0a7359a2e Simplify fmt target to only use gofmt (goimports not available)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-24 05:02:50 +02:00

35 lines
635 B
Makefile

.PHONY: all build test lint fmt vet clean help
all: lint test build
## build: Build the hatch binary
build:
CGO_ENABLED=0 go build -o hatch ./cmd/hatch
## test: Run all tests with race detection and coverage
test:
go test ./... -v -race -coverprofile=coverage.out
## lint: Run golangci-lint
lint:
golangci-lint run ./...
## fmt: Format code with gofmt
fmt:
gofmt -s -w .
## vet: Run go vet
vet:
go vet ./...
## clean: Remove build artifacts
clean:
rm -f hatch coverage.out
## help: Show this help message
help:
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@grep -E '^## ' $(MAKEFILE_LIST) | sed 's/## / /'