Skip to content

Commit

Permalink
Tweak Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Netherdrake committed Apr 4, 2021
1 parent 809af89 commit bcd0578
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,29 @@ init:
rustup update stable
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
git submodule update --init --recursive

.PHONY: release
release:
rustup install 1.51.0
rustup default 1.51.0
rustup toolchain install nightly-2021-03-24
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-24
rm -rf target/
cargo build --manifest-path node/Cargo.toml --features with-ethereum-compatibility --release

.PHONY: build
build:
cargo build --manifest-path node/Cargo.toml --features with-ethereum-compatibility --release

.PHONY: check
check:
SKIP_WASM_BUILD=1 cargo check

.PHONY: watch
watch:
SKIP_WASM_BUILD=1 cargo watch -c -x build

.PHONY: test
test:
SKIP_WASM_BUILD=1 cargo test --all
Expand All @@ -16,10 +34,6 @@ test:
debug:
cargo build && RUST_LOG=debug RUST_BACKTRACE=1 gdb --args target/debug/reef-node --dev --tmp -lruntime=debug

.PHONY: noeth
noeth:
RUST_BACKTRACE=1 cargo run -- --dev --tmp

.PHONY: run
run:
RUST_BACKTRACE=1 cargo run --manifest-path node/Cargo.toml --features with-ethereum-compatibility -- --dev --tmp
Expand All @@ -28,22 +42,11 @@ run:
log:
RUST_BACKTRACE=1 RUST_LOG=debug cargo run --manifest-path node/Cargo.toml --features with-ethereum-compatibility -- --dev --tmp

.PHONY: build
build:
cargo build --manifest-path node/Cargo.toml --features with-ethereum-compatibility --release

.PHONY: watch
watch:
SKIP_WASM_BUILD=1 cargo watch -c -x build
.PHONY: noeth
noeth:
RUST_BACKTRACE=1 cargo run -- --dev --tmp

.PHONY: doc
doc:
SKIP_WASM_BUILD=1 cargo doc --open

.PHONY: release
release:
rustup install 1.51.0
rustup default 1.51.0
rustup install nightly-2021-03-24
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-24
cargo build --manifest-path node/Cargo.toml --features with-ethereum-compatibility --release

0 comments on commit bcd0578

Please sign in to comment.