-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 741 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (25 loc) · 741 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
28
29
30
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2025, Unikraft GmbH.
# Licensed under the BSD-3-Clause License (the "License").
# You may not use this file except in compliance with the License.
# Prelude
WORKDIR ?= $(CURDIR)
Q ?= @
CHANNEL ?= prod-stable
# Tools
WGET ?= wget
UV ?= uv
.PHONY: all
all: generate
.PHONY: generate
generate: platform
.PHONY: platform
platform:
$(Q)rm -rf $(WORKDIR)/unikraft_cloud_platform
$(Q)$(UV) tool run openapi-python-client generate \
--url https://raw.githubusercontent.com/unikraft-cloud/openapi/$(CHANNEL)/platform.json \
--config $(WORKDIR)/.platform-config.yaml \
--custom-template-path $(WORKDIR)/templates \
--overwrite \
--output-path $(WORKDIR) \
--meta uv \