mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 11:23:25 +00:00
Update top-level Makefile
This commit is contained in:
15
Makefile
15
Makefile
@ -1,12 +1,21 @@
|
||||
.PHONY: all build clean docs fmt test
|
||||
.PHONY: all build clean docs fmt run setup test
|
||||
|
||||
all: build test
|
||||
|
||||
setup:
|
||||
@rustup component add rust-src
|
||||
@rustup component add llvm-tools-preview
|
||||
@cargo install mdbook
|
||||
|
||||
build:
|
||||
@cd src && cargo build
|
||||
@cd src && cargo kbuild
|
||||
@cd src && cargo kimage
|
||||
|
||||
run: build
|
||||
@cd src && cargo krun
|
||||
|
||||
test: build
|
||||
@cd src && cargo test
|
||||
@#cd src && cargo test
|
||||
|
||||
docs:
|
||||
@cd src && cargo doc # Build Rust docs
|
||||
|
12
README.md
12
README.md
@ -34,6 +34,18 @@ While there is nothing revolutionary in KxOS, it does explore some new design po
|
||||
While most code is written in Rust, the project-scope build process is governed
|
||||
by Makefile.
|
||||
|
||||
After downloading the source code, run the following command once to make sure
|
||||
all developmennt tools are installed.
|
||||
```bash
|
||||
make setup
|
||||
```
|
||||
|
||||
Then, we can build and test the project.
|
||||
```bash
|
||||
make
|
||||
```
|
||||
|
||||
If everything goes well, then we can run the OS.
|
||||
```bash
|
||||
make run
|
||||
```
|
||||
|
Reference in New Issue
Block a user