-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (40 loc) · 1.01 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
DIR=$(shell pwd)
SYS_PYTHON=python3
ifdef MINIMAL
REQUIREMENTS=requirements-runtime.txt
else
REQUIREMENTS=requirements.txt; \
make -C services/orchestrator deps; \
make -C services/profile deps
endif
export SL_CONFIG=$(realpath config.json)
export SL_PIP=$(DIR)/env/bin/pip
export DEV_PIP=pip
export SL_PYTHON=$(DIR)/env/bin/python
export SL_DATA=$(DIR)/data
.PHONY: all env env-dev
all: env
env: env/bin/activate
env/bin/activate:
test -d env || $(SYS_PYTHON) -m venv env
$(SL_PIP) install ./libsilverline
$(SL_PIP) install -r $(REQUIREMENTS)
touch env/bin/activate
orchestrator:
make -C services/orchestrator
profile:
make -C services/profile
start:
make -C services/orchestrator start
make -C services/profile start
stop:
make -C services/orchestrator stop
make -C services/profile stop
reset:
make -C services/orchestrator reset
typecheck:
python -m mypy start.py
python -m mypy manage.py
python -m mypy services/profile/profile.py
cd services/orchestrator; python -m mypy .
make -C runtimes typecheck