diff --git a/CLAUDE.md b/CLAUDE.md index 4c9cb2b7..ac37e01e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -62,6 +62,7 @@ See `docs/initial-plan.md` for the full tier definitions and acceptance criteria ``` make build # dart compile exe bin/clide.dart -o bin/clide +make run # build daemon + launch Flutter desktop app make test # flutter test make test-integration# daemon + CLI + fixture-repo suite make analyze # flutter analyze diff --git a/Makefile b/Makefile index 47ca88f3..cf940bf2 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,24 @@ else @echo "(pubspec.yaml not scaffolded yet; skipping)" endif +.PHONY: run +run: ## Build the daemon + launch the Flutter desktop app. +ifeq ($(APP_PRESENT),yes) + @# Build the CLI/daemon binary if stale. + $(MAKE) build + @# Start daemon in background, then launch app. + @echo "Starting daemon…" + @bin/clide --daemon & + @DAEMON_PID=$$!; \ + trap 'kill $$DAEMON_PID 2>/dev/null' EXIT; \ + echo "Daemon PID $$DAEMON_PID"; \ + echo "Launching Flutter app…"; \ + cd app && flutter run -d linux; \ + kill $$DAEMON_PID 2>/dev/null || true +else + @echo "(pubspec.yaml not scaffolded yet; skipping)" +endif + .PHONY: install install: build ## Install bin/clide into $(INSTALL_DIR). ifeq ($(APP_PRESENT),yes)