-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (50 loc) · 1.17 KB
/
Makefile
File metadata and controls
64 lines (50 loc) · 1.17 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
51
52
53
54
55
56
57
58
59
60
61
62
# RagTune Makefile
.PHONY: build install test lint clean release-dry run help
# Build binary
build:
go build -o ragtune ./cmd/ragtune
# Install to $GOPATH/bin
install:
go install ./cmd/ragtune
# Run all tests
test:
go test -v ./...
# Run tests with race detector
test-race:
go test -race -v ./...
# Run linter
lint:
golangci-lint run
# Clean build artifacts
clean:
rm -f ragtune
rm -rf dist/
# Dry run release (test goreleaser config)
release-dry:
goreleaser release --snapshot --clean
# Run with sample data
run: build
./ragtune --help
# Format code
fmt:
go fmt ./...
# Download dependencies
deps:
go mod download
go mod tidy
# Show help
help:
@echo "RagTune - EXPLAIN ANALYZE for RAG retrieval"
@echo ""
@echo "Usage:"
@echo " make build Build binary"
@echo " make install Install to GOPATH/bin"
@echo " make test Run tests"
@echo " make lint Run linter"
@echo " make clean Clean build artifacts"
@echo " make release-dry Test release build"
@echo " make fmt Format code"
@echo " make deps Download dependencies"
@echo ""
@echo "Release:"
@echo " git tag v0.1.0 && git push origin v0.1.0"