.PHONY: build test clean install # 构建 build: CGO_ENABLED=1 go build -tags fts5 -o bin/kb . # 安装到 ~/go/bin install: CGO_ENABLED=1 go install -tags fts5 . # 测试 test: CGO_ENABLED=1 go test -tags fts5 ./... # 详细测试 test-v: CGO_ENABLED=1 go test -tags fts5 -v ./... # 清理 clean: rm -rf bin/ go clean # 运行示例 run-search: ./bin/kb search 充装 --top 5 run-index: ./bin/kb index build run-status: ./bin/kb index status