2024-07-07 21:08:41 +02:00
|
|
|
all: build
|
|
|
|
|
|
|
|
api.json:
|
|
|
|
curl -o api.json https://src.opensuse.org/swagger.v1.json
|
|
|
|
|
2024-07-09 14:55:12 +02:00
|
|
|
gitea-generated/client/gitea_api_client.go:: api.json
|
2024-07-07 21:08:41 +02:00
|
|
|
[ -d gitea-generated ] || mkdir gitea-generated
|
|
|
|
podman run --rm -v $$(pwd):/api ghcr.io/go-swagger/go-swagger generate client -f /api/api.json -t /api/gitea-generated
|
|
|
|
|
2024-07-26 16:53:09 +02:00
|
|
|
api: gitea-generated/client/gitea_api_client.go
|
2024-07-07 21:08:41 +02:00
|
|
|
|
|
|
|
build: api
|
|
|
|
go build
|
|
|
|
|