From 401d7acc698375a8c29c9e41c9dc7fc4fe1a5da6 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 22 Jan 2026 15:19:32 +0100 Subject: [PATCH] fix: Sparse executing one-by-one is more of an issue than a help. This causes the makefile to stop execution as soon as sparse fails, hiding errors in any other file. --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9e42294..cc6f8f6 100644 --- a/Makefile +++ b/Makefile @@ -73,13 +73,11 @@ install-strip: bin/mcaselector-lite.stripped uninstall: $(RM) $(DESTDIR)/bin/$(NAME) -# Executes checks upon the code. -# The standard requires code to already be built at this stage. -# This isn't necessary for this, but may be added in the future, -# if so add the binary in the prerequisites. .PHONY: -check: $(SRC) - $(Q)$(SPARSE) $(CPPFLAGS) $< +check-sparse: $(SRC) + $(foreach f,$(SRC),\ + -$(Q)$(SPARSE) $(CPPFLAGS) $f\ + ) .PHONY: clean: