add make run target
Builds the daemon binary if stale, starts it in the background, launches flutter run -d linux, and cleans up the daemon on exit. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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 build # dart compile exe bin/clide.dart -o bin/clide
|
||||||
|
make run # build daemon + launch Flutter desktop app
|
||||||
make test # flutter test
|
make test # flutter test
|
||||||
make test-integration# daemon + CLI + fixture-repo suite
|
make test-integration# daemon + CLI + fixture-repo suite
|
||||||
make analyze # flutter analyze
|
make analyze # flutter analyze
|
||||||
|
|||||||
@@ -37,6 +37,24 @@ else
|
|||||||
@echo "(pubspec.yaml not scaffolded yet; skipping)"
|
@echo "(pubspec.yaml not scaffolded yet; skipping)"
|
||||||
endif
|
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
|
.PHONY: install
|
||||||
install: build ## Install bin/clide into $(INSTALL_DIR).
|
install: build ## Install bin/clide into $(INSTALL_DIR).
|
||||||
ifeq ($(APP_PRESENT),yes)
|
ifeq ($(APP_PRESENT),yes)
|
||||||
|
|||||||
Reference in New Issue
Block a user