From 90ef423cf81b723405ed8d844f4fdfb74ffef2ce Mon Sep 17 00:00:00 2001 From: Santiago Zarate Date: Wed, 31 Jan 2024 14:15:11 +0100 Subject: [PATCH] Make Rename venv and make target --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index f46b2c0..66d123e 100644 --- a/Makefile +++ b/Makefile @@ -36,15 +36,15 @@ checkstyle: black lint .PHONY: test test: only-test checkstyle -venv = qem-bot -environment: - if [ ! -d "$(venv)" ]; then virtualenv -p python3 $(venv); fi - . $(venv)/bin/activate && pip install -r requirements-dev.txt -r requirements.txt +VENV = qem-bot +.PHONY environment: + if [ ! -d "$(VENV)" ]; then virtualenv -p python3 $(venv); fi + . $(VENV)/bin/activate && pip install -r requirements-dev.txt -r requirements.txt # devel: environment -# maybe use Makefile.venv instead to get a shell with virtualenv +# maybe use Makefile.VENV instead to get a shell with virtualenv # # we need to detect what shell we are using # shell=$$(basename $$SHELL); \ # echo "Activating virtualenv for $$shell"; \ -# . $(venv) && \ +# . $(VENV) && \ # exec $($(SHELL))