-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 959 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 959 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
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: help build test fmt clippy clean regenerate doc setup-examples run-example
help:
@echo "Cloud Hypervisor SDK - Makefile"
@echo ""
@echo "Available targets:"
@echo " make build - Build the library"
@echo " make test - Run tests"
@echo " make fmt - Format code"
@echo " make clippy - Run clippy linter"
@echo " make doc - Generate and open documentation"
@echo " make setup-examples - Download test images for examples"
@echo " make run-example - Run the simple_vm_cirros example"
@echo " make regenerate - Regenerate SDK from upstream OpenAPI spec"
@echo " make clean - Clean build artifacts"
build:
cargo build
test:
cargo test
fmt:
cargo fmt
clippy:
cargo clippy
doc:
cargo doc --open
setup-examples:
./examples/fetch_test_images.sh
run-example: setup-examples
cargo run --example simple_vm_cirros
regenerate:
./regenerate.sh
clean:
cargo clean