mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 03:13:23 +00:00
Update top-level Makefile
This commit is contained in:
17
Makefile
17
Makefile
@ -1,12 +1,21 @@
|
|||||||
.PHONY: all build clean docs fmt test
|
.PHONY: all build clean docs fmt run setup test
|
||||||
|
|
||||||
all: build test
|
all: build test
|
||||||
|
|
||||||
|
setup:
|
||||||
|
@rustup component add rust-src
|
||||||
|
@rustup component add llvm-tools-preview
|
||||||
|
@cargo install mdbook
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@cd src && cargo build
|
@cd src && cargo kbuild
|
||||||
|
@cd src && cargo kimage
|
||||||
|
|
||||||
|
run: build
|
||||||
|
@cd src && cargo krun
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
@cd src && cargo test
|
@#cd src && cargo test
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
@cd src && cargo doc # Build Rust docs
|
@cd src && cargo doc # Build Rust docs
|
||||||
@ -20,4 +29,4 @@ check:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@cd src && cargo clean
|
@cd src && cargo clean
|
||||||
@cd docs && mdbook clean
|
@cd docs && mdbook clean
|
||||||
|
14
README.md
14
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
|
While most code is written in Rust, the project-scope build process is governed
|
||||||
by Makefile.
|
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
|
```bash
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If everything goes well, then we can run the OS.
|
||||||
|
```bash
|
||||||
|
make run
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user