.PHONY: all build build-release run run-gui check clippy fmt fmt-check doc clean \
test test-all test-all-single test-all-single-run \
coverage coverage-all test-create-snapshots test-update-benchmarks
all: build
build:
cargo build --package cella_gui --bin cella
build-release:
cargo build --package cella_gui --bin cella --release
run:
cargo run --package cella_gui --bin cella
run-gui:
cargo run --package cella_gui --bin cella -- --gui --size 1024x768
check:
cargo check --workspace
clippy:
cargo clippy --workspace -- -D warnings
cd cella_lib && cargo clippy --examples -- -D warnings
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
doc:
cargo doc --workspace --no-deps --open
test:
cd cella_lib && CELLA_ASCII=0 cargo test --package cella_lib
cd cella_lib && CELLA_ASCII=0 cargo test --example wildfire_smc
test-all:
cd cella_lib && CELLA_ASCII=0 cargo test --package cella_lib -- --include-ignored
cd cella_lib && CELLA_ASCII=0 cargo test --example wildfire_smc -- --include-ignored
test-all-single:
cd cella_lib && cargo test --package cella_lib -- --include-ignored --test-threads=1
test-all-single-run:
cd cella_lib && CELLA_BENCH_RUNS=1 CELLA_EXPORT_CONFIGS=1 cargo test --package cella_lib -- --include-ignored --test-threads=1
coverage:
cd cella_lib && CELLA_ASCII=0 cargo llvm-cov --package cella_lib --html
coverage-all:
cd cella_lib && CELLA_ASCII=0 cargo llvm-cov --package cella_lib --html -- --include-ignored
test-create-snapshots:
cd cella_lib && CELLA_UPDATE_SNAPSHOTS=1 cargo test --package cella_lib -- --include-ignored
test-update-benchmarks:
cd cella_lib && CELLA_UPDATE_BENCH=1 cargo test --package cella_lib -- --include-ignored --test-threads=1
clean:
cargo clean