From 22a9f2d573ef789ac9d2920e733e074d13c3dfad Mon Sep 17 00:00:00 2001 From: Legendrea Date: Mon, 18 Nov 2024 14:39:40 +0300 Subject: [PATCH] Update Makefile fix --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cfc7fb4..1ff0201 100644 --- a/Makefile +++ b/Makefile @@ -16,10 +16,12 @@ venv/bin/activate: requirements.txt chmod +x .venv/bin/activate # activate virtual environment . .venv/bin/activate - + activate: - # activate virtual environment - . .venv/bin/activate + # check if virtual environment exists, create if not + @if [ ! -d ".venv" ]; then make venv/bin/activate; fi + # activate virtual environment + . .venv/bin/activate install: requirements.txt # prerequisite # install commands