f010087e97
feat(cli): add direct model inference via new run subcommand - Add `aha run` CLI subcommand for direct model inference without HTTP service - Support multiple models including Qwen series, OCR models, ASR models, and voice generation - Implement input/output handling with file path support and auto-generation - Add comprehensive documentation in CLI_USAGE.md with examples - Include performance timing for model loading and inference operations - Add macOS build target to Makefile with Metal support ```
42 lines
920 B
Makefile
42 lines
920 B
Makefile
SHELL := bash
|
|
.DELETE_ON_ERROR:
|
|
.SHELLFLAGS := -eu -o pipefail -c
|
|
.DEFAULT_GOAL := help
|
|
MAKEFLAGS += --warn-undefined-variables
|
|
MAKEFLAGS += --no-builtin-rules
|
|
MAKEFLAGS += --no-print-directory
|
|
|
|
build:
|
|
@echo "Building project..."
|
|
@cargo build
|
|
|
|
build_mac:
|
|
@echo "Building project for macOS..."
|
|
@cargo build --features metal --release
|
|
|
|
test:
|
|
@echo "Running tests..."
|
|
@cargo test
|
|
|
|
clean:
|
|
@echo "Cleaning project..."
|
|
@cargo clean
|
|
|
|
fmt:
|
|
@echo "Formatting code..."
|
|
@cargo fmt --all -- --check
|
|
|
|
lint:
|
|
@echo "Linting code..."
|
|
@cargo clippy --no-deps --all-targets -- -D warnings
|
|
|
|
help:
|
|
@echo "Available commands:"
|
|
@echo " build - Build the project"
|
|
@echo " test - Run tests"
|
|
@echo " clean - Clean the project"
|
|
@echo " fmt - Format the code"
|
|
@echo " lint - Lint the code"
|
|
@echo " help - Show this help message"
|
|
|
|
.PHONY: build test clean fmt lint help |