-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 735 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 735 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
SHELL := zsh -e -u
include vars.mk
.PHONY: check
check: environment
pipenv run yapf -rd .
$(MAKE) -C cli check
$(MAKE) -C services/controller check
BUILD_TIMESTAMP=$(BUILD_TIMESTAMP) python3 test/run.py
terraform fmt -check
.PHONY: format
format: environment
pipenv run yapf -ri .
.PHONY: environment
environment: Pipfile.lock
pipenv sync --dev
touch $@
$(MAKE) -C cli environment
$(MAKE) -C services/controller environment
.PHONY: ml
ml:
$(MAKE) -C machines/ml deploy
.PHONY: controller
controller: ml
$(MAKE) -C services/controller deploy
.PHONY: deploy
deploy: ml controller
Pipfile.lock: Pipfile
pipenv lock
.PHONY: destroy
destroy: ml-destroy
.PHONY: ml-destroy
ml-destroy:
$(MAKE) -C machines/ml destroy