Added Makefile wrapper
This commit is contained in:
parent
afa7cf782d
commit
26b2745e9b
3 changed files with 21 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# =====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
|
||||
Reference in a new issue