-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 966 Bytes
/
Makefile
File metadata and controls
52 lines (42 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ClippyCLI Makefile
.PHONY: build install clean test fmt vet help
# Default target
all: build
# Build the binary
build:
@echo "Building clippycli..."
@go build -o clippycli .
# Install the binary to GOPATH/bin
install:
@echo "Installing clippycli..."
@go install .
# Clean build artifacts
clean:
@echo "Cleaning..."
@rm -f clippycli
@go clean
# Run tests
test:
@echo "Running tests..."
@go test -v ./...
# Format code
fmt:
@echo "Formatting code..."
@go fmt ./...
# Run go vet
vet:
@echo "Running go vet..."
@go vet ./...
# Run all checks
check: fmt vet test
# Show help
help:
@echo "Available targets:"
@echo " build - Build the clippycli binary"
@echo " install - Install clippycli to GOPATH/bin"
@echo " clean - Remove build artifacts"
@echo " test - Run tests"
@echo " fmt - Format code"
@echo " vet - Run go vet"
@echo " check - Run fmt, vet, and test"
@echo " help - Show this help message"