19 lines
330 B
Makefile
19 lines
330 B
Makefile
# =====CONFIG=====
|
|
PYTHON := python3
|
|
VENV := .venv
|
|
|
|
|
|
# =====RECIPES=====
|
|
# Create the virtual environment
|
|
$(VENV)/bin/activate: setup.py
|
|
'$(PYTHON)' -m venv '$(VENV)'
|
|
'$(VENV)/bin/pip' install -r requirements.txt
|
|
|
|
venv: $(VENV)/bin/activate
|
|
.PHONY: venv
|
|
|
|
# Remove any temporary files
|
|
clean:
|
|
@ rm -rf '$(VENV)'
|
|
.PHONY: clean
|