-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 747 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: install run test clean help
help:
@echo "MLX-VLM Receipt Scanner Service"
@echo ""
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make run - Run the service"
@echo " make test - Run tests"
@echo " make clean - Clean up"
install:
python3 -m venv venv
. venv/bin/activate && pip install --upgrade pip
. venv/bin/activate && pip install -r requirements.txt
cp .env.example .env
@echo "✅ Installation complete!"
@echo "Edit .env file if needed, then run: make run"
run:
. venv/bin/activate && python app.py
test:
. venv/bin/activate && python test_service.py
clean:
rm -rf venv __pycache__ *.pyc .mlx_cache
find . -type d -name "__pycache__" -exec rm -rf {} +