feat: add help target to Makefile and update README with available make commands

This commit is contained in:
mlogclub
2026-06-07 22:53:48 +08:00
parent 637a08ccc0
commit 93b9378c15
2 changed files with 11 additions and 1 deletions
+10 -1
View File
@@ -64,9 +64,18 @@ LANCEDB_CGO_LDFLAGS := $(LANCEDB_NATIVE_LIB) $(LANCEDB_SYSTEM_LDFLAGS)
.DEFAULT_GOAL := build
.PHONY: dev build release generator enums \
.PHONY: help dev build release generator enums \
_web-build-spa _web-dev _prepare-dist _lancedb-artifacts _lancedb-check
help:
@echo "Available targets:"
@echo " make dev Start backend and frontend development servers"
@echo " make build Build the current system into dist/"
@echo " make release Build linux/darwin/windows release binaries into dist/"
@echo " make generator Run code generation"
@echo " make enums Generate frontend enums"
@echo " make help Show this help"
dev: _lancedb-check
@CGO_ENABLED=1 CGO_CFLAGS="$(LANCEDB_CGO_CFLAGS)" CGO_LDFLAGS="$(LANCEDB_CGO_LDFLAGS)" \
$(GO) run -tags "dev lancedb" $(MAIN) & \