forked from CESARBR/knot-thing-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 717 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
32
33
34
35
36
37
PYTHONPATH := .
VENV := venv
BIN := $(VENV)/bin
PYTHON := env PYTHONPATH=$(PYTHONPATH) $(BIN)/python
PIP := $(BIN)/pip
REQUIREMENTS := -r requirements.txt
PRE_COMMIT := $(BIN)/pre-commit
APP_NAME := knot-thing-simulator
run:
sudo $(PYTHON) $(APP_NAME).py
bootstrap: venv \
requirements \
pre-commit-hooks
venv:
python3 -m venv $(VENV)
requirements:
$(PIP) install $(REQUIREMENTS)
pre-commit-hooks:
cp hooks/pre-commit .git/hooks/pre-commit
$(PRE_COMMIT) install
clean:
@find . -type d -name '__pycache__' -exec rm -rf {} +
@find . -type d -name '*pytest_cache*' -exec rm -rf {} +
@find . -type f -name "*.py[co]" -exec rm -rf {} +
clean-all: clean
rm -r $(VENV)
rm .git/hooks/pre-commit