diff --git a/Makefile b/Makefile new file mode 100644 index 000000000000..683e36e7c449 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +clean-all: + cargo clean + +clean: + cargo clean -p node + cargo clean -p address + cargo clean -p crypto + cargo clean -p blockchain + +lint: clean + cargo fmt + cargo clippy -- -D warnings + +build: + cargo build + +release: + cargo build --release diff --git a/README.md b/README.md index 850f6cec354a..9c7c05add580 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,8 @@ A Filecoin implenetation written in Rust. ### Run -1. `cargo run --bin node` -2. `./target/debug/node --help` +1. `make build` +2. `./target/debug/node --help` + +### Before Making a PR +1. `make lint`