-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 751 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 751 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
dist/argocd-cloudtruth-plugin: pkg/cloudtruth/client.go *.go
go build -o dist/argocd-cloudtruth-plugin
client: pkg/cloudtruth/client.go
pkg/cloudtruth/client.go: pkg/openapi.yml
docker run --rm \
-v "$(shell pwd)/pkg:/pkg" \
--user "$(shell id -u):$(shell id -g)" \
openapitools/openapi-generator-cli:v6.2.0 generate \
-i /pkg/openapi.yml \
-g go \
-o /pkg/cloudtruth \
--additional-properties packageName=cloudtruth \
--additional-properties isGoSubmodule=true \
--additional-properties packageVersion=1.0.0 \
--additional-properties enumClassPrefix=true \
--type-mappings=object=interface{}
pkg/openapi.yml: pkg
curl -s https://api.cloudtruth.io/api/schema/ > pkg/openapi.yml
pkg:
mkdir -p pkg
clean:
rm -rf pkg dist