-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 1.48 KB
/
Copy pathMakefile
File metadata and controls
44 lines (31 loc) · 1.48 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
# rabbit-code — Phase 0 Makefile (see docs/phases/PHASE00_SPEC_AND_ACCEPTANCE.md)
BIN := bin/rabbit-code
MODULE := ./...
.PHONY: build test test-race test-phase4 test-phase5 test-phase6 lint e2e e2e-tui clean assets-mascot gen-settings-schema
# Write assets/rabbit-code-mascot.png using the same resolution order as CLI (assets/rabbit.png when cwd is module root).
assets-mascot:
go run ./cmd/mascot-export
build:
mkdir -p bin
go build -o $(BIN) -ldflags "-X github.com/2456868764/rabbit-code/internal/version.Version=0.0.0-phase0 -X github.com/2456868764/rabbit-code/internal/version.Commit=$$(git rev-parse --short HEAD 2>/dev/null || echo unknown)" ./cmd/rabbit-code
test:
go test $(MODULE) -count=1
test-phase4:
go test ./internal/cost/... ./internal/services/... ./internal/features/... ./internal/app/... ./internal/utils/messages/... -race -count=1
test-phase5:
go test ./internal/query/... ./internal/services/... ./internal/memdir/... ./internal/utils/messages/... ./internal/features/... ./internal/commands/... -race -count=1
test-phase6:
go test ./internal/tools/... -race -count=1
test-race:
go test $(MODULE) -race -count=1
lint:
golangci-lint run $(MODULE)
e2e:
@true
e2e-tui:
@true
clean:
rm -rf bin
# Refresh embedded FileEdit settings JSON Schema (SchemaStore; same $id as CLAUDE_CODE_SETTINGS_SCHEMA_URL in upstream types).
gen-settings-schema:
curl -fsSL "https://json.schemastore.org/claude-code-settings.json" -o internal/tools/fileedittool/settings_schema.json