-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
31 lines (25 loc) · 900 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
24
25
26
27
28
29
30
31
################################################################
# GLOBALS #
################################################################
PROJECT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
PROJECT_NAME := hearai
PYTHON ?= python3
VENV = $(PROJECT_DIR)/.venv
PIP = $(VENV)/bin/pip
VIRTUALENV = $(PYTHON) -m venv
SHELL=/bin/bash
################################################################
# VIRTUAL ENVIRONMENT AND DEPENDENCIES #
################################################################
.PHONY: venv
## create virtual environment
venv: ./.venv/.requirements
.venv:
$(VIRTUALENV) $(VENV)
$(PIP) install -U pip setuptools wheel
.venv/.requirements: .venv
$(PIP) install -r $(PROJECT_DIR)/requirements.txt -r $(PROJECT_DIR)/requirements-dev.txt
touch $(VENV)/.requirements
.PHONY: venv-clean
## clean virtual environment
venv-clean: