From 5d38367dd73cd8e4f6e4e749c70e1c49f507be2a Mon Sep 17 00:00:00 2001 From: mulhern Date: Wed, 26 Feb 2025 20:22:48 -0500 Subject: [PATCH] Remove all verify-dependency-bounds associated targets Add ability to run buld targets using cargo-minimal-versions Signed-off-by: mulhern --- Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index a6c6a41..0a019fa 100644 --- a/Makefile +++ b/Makefile @@ -14,19 +14,15 @@ else CLIPPY_OPTS = --fix endif +ifeq ($(origin MINIMAL), undefined) + BUILD = build +else + BUILD = minimal-versions build --direct +endif + clippy: cargo clippy ${CLIPPY_OPTS} -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} - ${SET_LOWER_BOUNDS} ${MANIFEST_PATH_ARGS} - cargo build ${MANIFEST_PATH_ARGS} - COMPARE_FEDORA_VERSIONS ?= test-compare-fedora-versions: echo "Testing that COMPARE_FEDORA_VERSIONS environment variable is set to a valid path" @@ -47,7 +43,7 @@ audit: cargo audit -D warnings build: - cargo build + cargo ${BUILD} .PHONY: audit