-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (49 loc) · 1.36 KB
/
Makefile
File metadata and controls
64 lines (49 loc) · 1.36 KB
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
56
57
58
59
60
61
62
63
64
# Copyright (C) 2021 Jingli Chen (Wine93), NetEase Inc.
.PHONY: list build dep install image playground check test install_and_config
stor?=""
prefix?= "$(PWD)/projects"
release?= 0
dep?= 0
only?= "*"
image_name?= "dingodatabase/dingofs:unknown"
case?= "*"
os?= "rocky9"
ci?=0
image_type?=0
define help_msg
## list
Usage:
make list
## build
Usage:
make build only=TARGET dep=0/1 release=0/1 os=OS
Examples:
make build only=test/* os=rocky9
make build release=1
## dep
Usage:
make dep
## install
Usage:
make install prefix=PREFIX only=TARGET
Examples:
make install prefix=/usr/local/dingofs only=etcd
## image
Usage:
make image image_name=image_name os=OS image_type=TYPE # 0: skip build image, 1: build mds v1 image, 2: build mdsv2 image
Examples:
make image image_name=dingodatabase/dingofs:test os=rocky9 image_type=1
endef
export help_msg
help:
@echo "$$help_msg"
file_build:
@bash scripts/install/file-build.sh --only=$(only) --dep=$(dep) --release=$(release) --os=$(os) --unit_tests=${unit_tests}
file_dep:
@bash scripts/install/file-build.sh --only="" --dep=1
file_install:
@bash scripts/install/file-install.sh --prefix=$(prefix) --only=$(only)
file_deploy_config:
@bash scripts/install/file-deploy-config.sh --os=$(os)
file_image:
@bash scripts/install/file-deploy-config.sh --os=$(os) --name=$(image_name) --type=${image_type}