I'm writing a Makefile
for my project (using MacOS). I have the following setup command:
init:
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
This should create the virtual environment, activate it, and install required libraries.
However, when I run make init
, I get:
python3 -m venv venv
source venv/bin/activate
make: source: No such file or directory
make: *** [init] Error 1
Running these commands manually works, so the Makefile
can't see my venv directory for some reason. Any idea why?
I considered that it may be executing the second command before the first completes, but I believe the terminal should prevent that...