# Binary name BINARY_NAME=claude-proxy # Go build flags GO_FLAGS=-ldflags="-s -w" # Default model to use with Ollama (can override via CLI) DEFAULT_MODEL=codellama # Default port PORT=8081 .PHONY: all build run clean fmt test # Default target all: build # Build the binary build: go build $(GO_FLAGS) -o $(BINARY_NAME) ./cmd/claude-proxy/main.go # Run the server with environment variables run: OLLAMA_MODEL=$(DEFAULT_MODEL) BIND_ADDR=":$(PORT)" ./$(BINARY_NAME) # Format all Go files fmt: go fmt ./... # Run Go tests test: go test ./... # Clean build artifacts clean: rm -f $(BINARY_NAME)