From: Michael Brown Date: Tue, 3 Feb 2026 10:16:14 +0000 (+0000) Subject: [build] Ensure dependencies of version.c are always rebuilt as expected X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9106130f62d3e5a51e8ac04d4965a2a424517dc9;p=thirdparty%2Fipxe.git [build] Ensure dependencies of version.c are always rebuilt as expected The core/version.c file is built into multiple objects (since it incorporates the build target name such as "snponly.efi"), and is handled separately from the standard build rules. Add the missing line (taken from the standard build rules template) to ensure that the dependency file is itself updated when the dependencies change. In particular, this ensures that the dependencies for core/version.c will be updated when switching named configurations. Reported-by: Christian I. Nilsson Signed-off-by: Michael Brown --- diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index f227fdd76..1f1cae258 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -1255,6 +1255,7 @@ $(BIN)/version.%.o : core/version.c $(MAKEDEPS) $(version_DEPS) $(GIT_INDEX) -DVERSION="\"$(VERSION)\"" \ -c $< -o $@ $(Q)$(OBJCOPY) --prefix-symbols=$(SYMBOL_PREFIX) $@ +$(BIN)/deps/core/version.c.d : $(version_DEPS) # Build an intermediate object file from the objects required for the # specified target.