-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (26 loc) · 788 Bytes
/
Makefile
File metadata and controls
30 lines (26 loc) · 788 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
29
30
.PHONY: build run clean
build:
@echo "Setting up Python virtual environment..."
python -m venv .venv
@echo "Activating virtual environment..."
. .venv/bin/activate && \
pip install --upgrade pip && \
pip install -r requirements.txt
@echo "Build complete! Activate the environment with: source .venv/bin/activate"
run:
@echo "Starting the application..."
. .venv/bin/activate && python run.py
clean:
@echo "Cleaning up..."
rm -rf .venv
rm -rf __pycache__
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type f -name "*.pyc" -delete
setup-env:
@if [ ! -f .env ]; then \
echo "Creating .env file from .env.example..."; \
cp .env.example .env; \
echo "Please update .env with your configuration values"; \
else \
echo ".env file already exists"; \
fi