asterinas/Makefile

37 lines
734 B
Makefile
Raw Normal View History

2023-02-07 08:05:21 +00:00
.PHONY: all build clean docs fmt run setup test tools
2022-08-08 22:43:47 +00:00
2023-04-10 03:12:42 +00:00
all: build
2022-08-08 22:43:47 +00:00
2022-08-17 03:22:49 +00:00
setup:
@rustup component add rust-src
2023-02-07 08:05:21 +00:00
@rustup component add rustc-dev
2022-08-17 03:22:49 +00:00
@rustup component add llvm-tools-preview
@cargo install mdbook
2022-08-08 22:43:47 +00:00
build:
2023-05-29 05:29:53 +00:00
@make --no-print-directory -C regression
2023-04-10 03:12:42 +00:00
@cargo kbuild
2022-08-17 03:22:49 +00:00
2023-02-07 08:05:21 +00:00
tools:
2023-04-10 03:12:42 +00:00
@cd services/libs/comp-sys && cargo install --path cargo-component
2023-02-07 08:05:21 +00:00
2022-08-17 03:22:49 +00:00
run: build
2023-04-10 03:12:42 +00:00
@cargo krun
2022-08-08 22:43:47 +00:00
test: build
2023-04-10 03:12:42 +00:00
@cargo ktest
2022-08-08 22:43:47 +00:00
docs:
2023-04-10 03:12:42 +00:00
@cargo doc # Build Rust docs
2022-08-08 22:43:47 +00:00
@echo "" # Add a blank line
2022-08-08 23:02:55 +00:00
@cd docs && mdbook build # Build mdBook
2022-08-08 22:43:47 +00:00
2022-08-08 23:02:55 +00:00
check:
2023-04-10 03:12:42 +00:00
@cargo fmt --check # Check Rust format issues
@cargo clippy # Check common programming mistakes
2022-08-08 22:43:47 +00:00
clean:
2023-04-10 03:12:42 +00:00
@cargo clean
2022-08-17 03:22:49 +00:00
@cd docs && mdbook clean
2023-05-29 05:29:53 +00:00
@make --no-print-directory -C regression clean