# Which tests to run? This applies both for `cargo test` and the Subplot tests.
TESTS =

# Build binaries for this target. Unset to use default for toolchain.
BUILD_FOR = 

# Construct cargo option for build target, if needed.
ifdef BUILD_FOR
TARGET_OPTION = --target $(BUILD_FOR)
else
TARGET_OPTION =
endif

all: clippy test

check clippy:
	cargo clippy --all-targets -- -Dwarnings

build: clippy
	cargo build --all-targets $(TARGET_OPTION)

test: build
	cargo test $(TARGET_OPTION) -- ${TESTS}

mutants:
	cargo mutants -e 'src/bin/**/*.rs'
