build: add make install target for flynn CLI

This commit is contained in:
William Valentin
2026-02-16 10:56:45 -08:00
parent 3863f59b45
commit 91282a9c47
2 changed files with 11 additions and 6 deletions
+8 -2
View File
@@ -1,7 +1,7 @@
# Flynn Makefile
# Self-hosted personal AI agent
.PHONY: build dev start stop restart status logs tui tui-fs tui-dev test test-run lint typecheck help daemon-start daemon-stop daemon-restart daemon-status daemon-logs enable disable llama-start llama-stop llama-restart llama-status llama-logs llama-enable llama-disable
.PHONY: build dev start stop restart status logs tui tui-fs tui-dev test test-run lint typecheck check help deps install daemon-start daemon-stop daemon-restart daemon-status daemon-logs enable disable llama-start llama-stop llama-restart llama-status llama-logs llama-enable llama-disable
# Default target
.DEFAULT_GOAL := help
@@ -103,9 +103,15 @@ typecheck: ## Run TypeScript compiler (no emit)
check: lint typecheck test-run ## Run all checks (lint, typecheck, test)
# Dependencies
install: ## Install dependencies
deps: ## Install dependencies
pnpm install
install: ## Install flynn CLI as a shell command (build + global link)
pnpm install
pnpm build
pnpm link --global
@echo "flynn installed. If the command is not found, add PNPM_HOME to your PATH."
# Utilities
help: ## Show this help message
@echo "Flynn - Self-hosted personal AI agent"
+3 -4
View File
@@ -38,15 +38,14 @@ Self-hosted personal AI assistant with Telegram and Terminal interfaces.
## Quick Start
```bash
# Install dependencies
pnpm install
# Install flynn CLI command (build + global link)
make install
# Copy and configure
cp config/default.yaml ~/.config/flynn/config.yaml
# Edit config with your API keys and Telegram bot token
# Build and run
pnpm build
# Run
flynn start
# Or run without building