-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathMakefile
56 lines (45 loc) · 1013 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
REPOROOT=../../../
# Use make help, to see the available rules
include ${REPOROOT}/.make.defaults
KFPv2 ?= 0
.PHONY: publish
publish:
.PHONY: workflow-venv
workflow-venv:
ifeq ($(KFPv2), 1)
echo "Skipping build as KFPv2 is defined"
else
$(MAKE) -C ray/kfp_v1 workflow-venv
endif
.PHONY: workflow-build
workflow-build:
ifeq ($(KFPv2), 1)
echo "Skipping build as KFPv2 is defined"
else
$(MAKE) -C ray/kfp_v1 workflow-build
endif
.PHONY: workflow-test
workflow-test:
ifeq ($(KFPv2), 1)
echo "Skipping build as KFPv2 is defined"
else
$(MAKE) -C ray/kfp_v1 workflow-test
endif
.PHONY: workflow-upload
workflow-upload:
ifeq ($(KFPv2), 1)
# we want to prevent execution of the rule, when we run `make build` in upper directories and KFPv2==1
echo "Skipping build as KFPv2 is defined"
else
$(MAKE) -C ray/kfp_v1 workflow-upload
endif
.PHONY: set-versions
set-versions:
ifeq ($(KFPv2), 1)
echo "Skipping build as KFPv2 is defined"
else
$(MAKE) -C ray/kfp_v1 set-versions
endif
clean::
build::
test::