Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ else
CLIPPY_OPTS = --fix
endif

ifeq ($(origin MINIMAL), undefined)
BUILD = build
else
BUILD = minimal-versions build --direct
endif

IGNORE_ARGS ?=

${HOME}/.cargo/bin/cargo-audit:
Expand All @@ -26,10 +32,10 @@ check-typos:
typos

build:
cargo build
cargo ${BUILD}

build-examples:
cargo build --examples
cargo ${BUILD} --examples

test-compare-fedora-versions:
echo "Testing that COMPARE_FEDORA_VERSIONS environment variable is set to a valid path"
Expand All @@ -38,16 +44,6 @@ test-compare-fedora-versions:
check-fedora-versions: test-compare-fedora-versions
${COMPARE_FEDORA_VERSIONS} ${MANIFEST_PATH_ARGS} ${FEDORA_RELEASE_ARGS} ${IGNORE_ARGS}

SET_LOWER_BOUNDS ?=
test-set-lower-bounds:
echo "Testing that SET_LOWER_BOUNDS environment variable is set to a valid path"
test -e "${SET_LOWER_BOUNDS}"

verify-dependency-bounds: test-set-lower-bounds
cargo build ${MANIFEST_PATH_ARGS} --all-features
${SET_LOWER_BOUNDS} ${MANIFEST_PATH_ARGS}
cargo build ${MANIFEST_PATH_ARGS} --all-features

clippy:
(cd libcryptsetup-rs-sys && cargo clippy --all-features ${CARGO_OPTS})
cargo clippy --all-features ${CARGO_OPTS}
Expand Down Expand Up @@ -99,7 +95,4 @@ yamllint:
test-compare-fedora-versions
test-loopback
test-loopback-mutex
test-set-lower-bounds
verify-dependency-bounds
verify-dependency-bounds-sys
yamllint