62159
Sy
symb / files
symb / Makefile
663 bytes
1.PHONY: build run test lint clean install dev 2 3# Build the binary 4build: 5 go build -o bin/symb ./cmd/symb 6 7# Run the application 8run: 9 go run ./cmd/symb 10 11# Run tests 12test: 13 go test -v -race -coverprofile=coverage.out ./cmd/... ./internal/... 14 15# Run linter (auto-formats first) 16lint: 17 gofmt -w ./cmd/ ./internal/ 18 $$(go env GOPATH)/bin/golangci-lint run ./cmd/... ./internal/... 19 20# Clean build artifacts 21clean: 22 rm -rf bin/ 23 rm -f coverage.out 24 25# Install dependencies 26install: 27 go mod download 28 go mod tidy 29 30# Development mode (with hot reload if you add air later) 31dev: install 32 go run ./cmd/symb 33 34# Show coverage 35coverage: test 36 go tool cover -html=coverage.out