-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 666 Bytes
/
Copy pathMakefile
File metadata and controls
49 lines (36 loc) · 666 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
.PHONY: all build clean run test tidy
# Default target
all: build
# Build the binary
build:
go build -o bin/goodfirstgo ./cmd/goodfirstgo
# Install globally
install:
go install ./cmd/goodfirstgo
# Run the CLI
run: tidy build
./bin/goodfirstgo --help
# Development run with default flags
run-dev:
go run ./cmd/goodfirstgo --language go --label good-first-issue
# Tidy dependencies
tidy:
go mod tidy
# Test
test:
go test ./...
# Clean build artifacts
clean:
rm -rf bin/
# Lint (requires golangci-lint)
lint:
golangci-lint run
# Generate docs (if using godoc)
docs:
go doc ./...
# Check formatting
fmt:
go fmt ./...
# Vet code
vet:
go vet ./...