.PHONY: install install-dev uninstall clean test build help
help:
@echo "Tiny Trae AI Coding Assistant"
@echo "Available targets:"
@echo " install - Install tiny-trae globally"
@echo " install-dev - Install in development mode"
@echo " uninstall - Uninstall tiny-trae"
@echo " build - Build the project"
@echo " test - Run tests"
@echo " clean - Clean build artifacts"
@echo " help - Show this help message"
install:
@echo "๐จ Building Tiny Trae..."
cargo build --release
@echo "๐ Installing Tiny Trae globally..."
cargo install --path .
@echo "โ๏ธ Setting up global configuration..."
@mkdir -p ~/.config/tiny-trae
@if [ ! -f ~/.config/tiny-trae/config.toml ]; then \
cp config.toml ~/.config/tiny-trae/config.toml; \
echo "๐ Configuration file created at: ~/.config/tiny-trae/config.toml"; \
echo "๐ Please update your API key in the config file."; \
fi
@echo "โ
Tiny Trae installed successfully!"
@echo "๐ Run 'tiny-trae' from anywhere to start the AI coding assistant."
install-dev:
@echo "๐จ Building Tiny Trae in development mode..."
cargo build
@echo "๐ Installing Tiny Trae in development mode..."
cargo install --path . --debug
@echo "โ
Tiny Trae development version installed!"
uninstall:
@echo "๐๏ธ Uninstalling Tiny Trae..."
cargo uninstall tiny-trae
@echo "โ
Tiny Trae uninstalled successfully!"
@echo "๐ก Config files in ~/.config/tiny-trae/ are preserved."
build:
@echo "๐จ Building Tiny Trae..."
cargo build --release
test:
@echo "๐งช Running tests..."
cargo test
clean:
@echo "๐งน Cleaning build artifacts..."
cargo clean
install-one-liner:
@echo "curl -sSf https://raw.githubusercontent.com/your-username/tiny-trae/main/install.sh | bash"