diff --git a/Makefile b/Makefile index e08c0d0..be19a06 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,9 @@ ucore: - @RUST_TARGET_PATH=$(shell pwd) xargo build --target ucore --features ucore \ No newline at end of file + rustup override set nightly-2018-04-01 + RUST_TARGET_PATH=$(shell pwd) xargo build --target ucore --features ucore + +install-rust: + which cargo || ( curl https://sh.rustup.rs -sSf | sh ) + which xargo || ( rustup component add rust-src && cargo install xargo ) + +.PHONY: ucore install-rust \ No newline at end of file