-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
23 lines (18 loc) · 986 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#################################################################################
# GLOBALS #
#################################################################################
PYTHON_VERSION = python3.8
VIRTUALENV := build/virtualenv
#################################################################################
# COMMANDS #
#################################################################################
# Set the default location for the virtualenv to be stored
# Create the virtualenv by installing the requirements and test requirements
$(VIRTUALENV)/.installed: requirements.txt
@if [ -d $(VIRTUALENV) ]; then rm -rf $(VIRTUALENV); fi
@mkdir -p $(VIRTUALENV)
virtualenv --python $(PYTHON_VERSION) $(VIRTUALENV)
$(VIRTUALENV)/bin/pip3 install -r requirements.txt
touch $@
.PHONY: virtualenv
virtualenv: $(VIRTUALENV)/.installed