.PHONY: all build test fmt lint clean install all: fmt lint test build build: go build -o hdmistat ./cmd/hdmistat test: fmt-check lint go test -v ./... fmt: go fmt ./... fmt-check: @echo "Checking formatting..." @test -z "$$(gofmt -l .)" || (echo "Files need formatting. Run 'make fmt'" && gofmt -l . && exit 1) lint: golangci-lint run clean: rm -f hdmistat go clean install: build sudo cp hdmistat /usr/local/bin/ # Development helpers .PHONY: run run-daemon run: build ./hdmistat run-daemon: build sudo ./hdmistat daemon # Dependencies .PHONY: deps deps: go mod download go mod tidy