Files
llm-intelligence/Makefile

23 lines
1.0 KiB
Makefile
Raw Normal View History

.PHONY: build-fetch-openrouter check-fetch-openrouter ci-fetch-openrouter help-fetch-openrouter test-fetch-openrouter
test-fetch-openrouter:
bash $(CURDIR)/scripts/test.sh
build-fetch-openrouter: scripts/fetch_openrouter.go
go build -o /dev/null ./scripts/fetch_openrouter.go
ci-fetch-openrouter: build-fetch-openrouter test-fetch-openrouter
check-fetch-openrouter: ci-fetch-openrouter
test -x scripts/test.sh
test -f scripts/fetch_openrouter.go
test -f scripts/testdata/openrouter_models_sample.json
help-fetch-openrouter:
@printf "%-29s %s\n" "fetch-openrouter Makefile 入口" ""
@printf "%-29s %s\n" "make build-fetch-openrouter" "编译采集器(仅构建,无测试)"
@printf "%-29s %s\n" "make test-fetch-openrouter" "执行单元测试(仅测试,无构建)"
@printf "%-29s %s\n" "make ci-fetch-openrouter" "构建 + 测试(全链路)"
@printf "%-29s %s\n" "make check-fetch-openrouter" "CI 检查:构建 + 测试 + 产物验证"
@printf "%-29s %s\n" "make help-fetch-openrouter" "显示本帮助信息"