From c6a94257ff6310715fc3c3bdebdd2ff0cc884002 Mon Sep 17 00:00:00 2001 From: Luigi Leonardi Date: Thu, 22 May 2025 17:18:50 +0200 Subject: [PATCH] igvm_c/Makefile: Separate build and test target Create a new `build` target that is only used to build the static library. This allows the library to be built without necessarily being tested. Signed-off-by: Luigi Leonardi --- igvm_c/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/igvm_c/Makefile b/igvm_c/Makefile index 999cd29..9914fa2 100644 --- a/igvm_c/Makefile +++ b/igvm_c/Makefile @@ -28,7 +28,9 @@ VERSION = $(shell grep -oP "(?<=version = \").+(?=\")" $(IGVM_DIR)/igvm/Cargo.to .PHONY: install -all: $(API_DIR)/include/igvm.h $(TARGET_PATH)/dump_igvm test +all: build test + +build: $(API_DIR)/include/igvm.h $(TARGET_PATH)/dump_igvm $(TARGET_PATH)/libigvm.a: $(CARGO) build --features $(FEATURES) $(EXTRA_PARAMS) --manifest-path=$(IGVM_DIR)/igvm/Cargo.toml