-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
167 lines (131 loc) · 5.98 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
SHELL := /bin/bash
.PHONY: all
all: package-all readme-all
.PHONY: package-all
package-all: package-all-new \
package-promote-release \
package-get-customer-instances package-report-compatibility-result package-upgrade-cluster
.PHONY: package-all-new
package-all-new: package-archive-channel package-archive-customer \
package-create-customer package-create-release \
package-helm-install package-kots-install \
package-create-cluster package-remove-cluster package-prepare-cluster \
package-create-object-store package-expose-port
.PHONY: package-main
package-main:
rm -rf ./build ./dist
npm i && npm run build && npm run package
.PHONY: package-prepare-cluster
package-prepare-cluster: package-main
rm -rf ./prepare-cluster/dist
cp -r dist prepare-cluster/
.PHONY: package-archive-channel
package-archive-channel: package-main
rm -rf ./archive-channel/dist
cp -r dist archive-channel/
.PHONY: package-archive-customer
package-archive-customer: package-main
rm -rf ./archive-customer/dist
cp -r dist archive-customer/
.PHONY: package-create-cluster
package-create-cluster: package-main
rm -rf ./create-cluster/dist
cp -r dist create-cluster/
.PHONY: package-create-object-store
package-create-object-store: package-main
rm -rf ./create-object-store/dist
cp -r dist create-object-store/
.PHONY: package-expose-port
package-expose-port: package-main
rm -rf ./expose-port/dist
cp -r dist expose-port/
.PHONY: package-create-customer
package-create-customer: package-main
rm -rf ./create-customer/dist
cp -r dist create-customer/
.PHONY: package-create-release
package-create-release: package-main
rm -rf ./create-release/dist
cp -r dist create-release/
.PHONY: package-helm-install
package-helm-install: package-main
rm -rf ./helm-install/dist
cp -r dist helm-install/
.PHONY: package-kots-install
package-kots-install: package-main
rm -rf ./kots-install/dist
cp -r dist kots-install/
.PHONY: package-promote-release
package-promote-release:
rm -rf ./promote-release/build ./promote-release/dist
cd ./promote-release && npm install && npm run build && npm run package
.PHONY: package-remove-cluster
package-remove-cluster: package-main
rm -rf ./remove-cluster/dist
cp -r dist remove-cluster/
.PHONY: package-get-customer-instances
package-get-customer-instances:
rm -rf ./get-customer-instances/build ./get-customer-instances/dist
cd ./get-customer-instances && npm install && npm run build && npm run package
.PHONY: package-report-compatibility-result
package-report-compatibility-result:
rm -rf ./report-compatibility-result/build ./report-compatibility-result/dist
cd ./report-compatibility-result && npm install && npm run build && npm run package
.PHONY: package-upgrade-cluster
package-upgrade-cluster:
rm -rf ./upgrade-cluster/build ./upgrade-cluster/dist
cd ./upgrade-cluster && npm install && npm run build && npm run package
.PHONY: readme-all
readme-all: pip-install readme-archive-channel readme-archive-customer readme-create-cluster readme-create-object-store \
readme-expose-port readme-create-customer readme-create-release readme-helm-install \
readme-kots-install readme-promote-release readme-remove-cluster readme-prepare-cluster \
readme-get-customer-instances readme-report-compatibility-result \
readme-upgrade-cluster
.PHONY: pip-install
pip-install:
pip install -Ur docs/generate-readme/requirements.txt
.PHONY: readme-archive-channel
readme-archive-channel: pip-install
python docs/generate-readme/action-to-mermaid.py ./archive-channel/action.yml > ./archive-channel/README.md
.PHONY: readme-archive-customer
readme-archive-customer: pip-install
python docs/generate-readme/action-to-mermaid.py ./archive-customer/action.yml > ./archive-customer/README.md
.PHONY: readme-create-cluster
readme-create-cluster: pip-install
python docs/generate-readme/action-to-mermaid.py ./create-cluster/action.yml > ./create-cluster/README.md
.PHONY: readme-create-object-store
readme-create-object-store: pip-install
python docs/generate-readme/action-to-mermaid.py ./create-object-store/action.yml > ./create-object-store/README.md
.PHONY: readme-expose-port
readme-expose-port: pip-install
python docs/generate-readme/action-to-mermaid.py ./expose-port/action.yml > ./expose-port/README.md
.PHONY: readme-create-customer
readme-create-customer: pip-install
python docs/generate-readme/action-to-mermaid.py ./create-customer/action.yml > ./create-customer/README.md
.PHONY: readme-create-release
readme-create-release: pip-install
python docs/generate-readme/action-to-mermaid.py ./create-release/action.yml > ./create-release/README.md
.PHONY: readme-helm-install
readme-helm-install: pip-install
python docs/generate-readme/action-to-mermaid.py ./helm-install/action.yml > ./helm-install/README.md
.PHONY: readme-kots-install
readme-kots-install: pip-install
python docs/generate-readme/action-to-mermaid.py ./kots-install/action.yml > ./kots-install/README.md
.PHONY: readme-promote-release
readme-promote-release: pip-install
python docs/generate-readme/action-to-mermaid.py ./promote-release/action.yml > ./promote-release/README.md
.PHONY: readme-remove-cluster
readme-remove-cluster: pip-install
python docs/generate-readme/action-to-mermaid.py ./remove-cluster/action.yml > ./remove-cluster/README.md
.PHONY: readme-prepare-cluster
readme-prepare-cluster: pip-install
python docs/generate-readme/action-to-mermaid.py ./prepare-cluster/action.yml > ./prepare-cluster/README.md
.PHONY: readme-get-customer-instances
readme-get-customer-instances: pip-install
python docs/generate-readme/action-to-mermaid.py ./get-customer-instances/action.yml > ./get-customer-instances/README.md
.PHONY: readme-report-compatibility-result
readme-report-compatibility-result: pip-install
python docs/generate-readme/action-to-mermaid.py ./report-compatibility-result/action.yml > ./report-compatibility-result/README.md
.PHONY: readme-upgrade-cluster
readme-upgrade-cluster: pip-install
python docs/generate-readme/action-to-mermaid.py ./upgrade-cluster/action.yml > ./upgrade-cluster/README.md