-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·48 lines (37 loc) · 794 Bytes
/
Makefile
File metadata and controls
executable file
·48 lines (37 loc) · 794 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 deps build install test clean fmt vet install-hooks
# Default target
all: build
# Download dependencies
deps:
go mod download
go mod tidy
# Build the binary
build:
go build -o shells .
# Install to GOPATH/bin
install:
go install
# Run tests
test:
go test ./...
# Clean build artifacts
clean:
rm -f shells
# Format code
fmt:
go fmt ./...
# Vet code
vet:
go vet ./...
# Run all checks
check: fmt vet test
# Development build with race detection
dev:
go build -race -o shells .
# Install git hooks for development
install-hooks:
@echo "Installing git hooks..."
@cp scripts/git-hooks/pre-commit .git/hooks/pre-commit
@cp scripts/git-hooks/pre-push .git/hooks/pre-push
@chmod +x .git/hooks/pre-commit .git/hooks/pre-push
@echo "Git hooks installed successfully."