-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 772 Bytes
/
Makefile
File metadata and controls
45 lines (35 loc) · 772 Bytes
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
38
39
40
41
42
43
44
45
APP=app
MAIN=$(APP)/main.py
VENV=.venv
PYTHON=$(VENV)/bin/python
.PHONY: default
default: run
.PHONY: venv
venv:
python3 -m venv $(VENV)
$(PYTHON) -m pip install --upgrade pip
.PHONY: install
install: venv
$(PYTHON) -m pip install -r requirements.txt
.PHONY: run
run:
$(PYTHON) -m app.main
.PHONY: run-realtime
run-realtime:
nice -n -19 $(PYTHON) -m app.main
.PHONY: lint
lint:
$(PYTHON) -m flake8 $(APP)
.PHONY: clean
clean:
find . -name "__pycache__" -exec rm -rf {} +
find . -name "*.pyc" -delete
.PHONY: reset
reset: clean
rm -rf $(VENV)
.PHONY: watch
watch:
@echo "Watching config.yaml & midi_map.yaml (feito pelo watchdog no próprio app)"
.PHONY: dist
dist:
tar -czvf sf2-synth.tar.gz $(APP) config.yaml midi_map.yaml requirements.txt Makefile