-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (41 loc) · 1.24 KB
/
Makefile
File metadata and controls
50 lines (41 loc) · 1.24 KB
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
.PHONY: build install clean run test
# Build the binary
build:
go build -o crev ./cmd/crev
# Install to skill directory with symlinks in ~/.local/bin
SKILL_DIR := ~/.claude/skills/review
CMD_DIR := ~/.claude/commands
install: build
mkdir -p ~/.local/bin $(SKILL_DIR) $(CMD_DIR)
cp crev $(SKILL_DIR)/
@if [ "$$(uname -s)" = "Darwin" ]; then codesign -s - -f $(SKILL_DIR)/crev; fi
cp claude-skill/SKILL.md $(SKILL_DIR)/
cp claude-skill/crev-popup $(SKILL_DIR)/
cp scripts/crev-web $(SKILL_DIR)/
chmod +x $(SKILL_DIR)/crev-popup $(SKILL_DIR)/crev-web
ln -sf $(SKILL_DIR)/crev ~/.local/bin/crev
ln -sf $(SKILL_DIR)/crev-popup ~/.local/bin/crev-popup
ln -sf $(SKILL_DIR)/crev-web ~/.local/bin/crev-web
cp claude-command/crev.md $(CMD_DIR)/
@echo "Installed crev to $(SKILL_DIR)"
@echo "Installed /crev command to $(CMD_DIR)"
# Clean build artifacts
clean:
rm -f crev
# Run in development
run: build
./crev
# Run tests
test:
go test -v ./...
# Format code
fmt:
go fmt ./...
# Lint code
lint:
golangci-lint run
# Build for all platforms
build-all:
GOOS=darwin GOARCH=amd64 go build -o crev-darwin-amd64 ./cmd/crev
GOOS=darwin GOARCH=arm64 go build -o crev-darwin-arm64 ./cmd/crev
GOOS=linux GOARCH=amd64 go build -o crev-linux-amd64 ./cmd/crev