mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[build] Ensure version.%.o is always rebuilt as expected
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -918,7 +918,7 @@ $(BIN)/deps/%.d : % $(MAKEDEPS)
|
|||||||
|
|
||||||
# Calculate list of dependency files
|
# Calculate list of dependency files
|
||||||
#
|
#
|
||||||
AUTO_DEPS = $(patsubst %,$(BIN)/deps/%.d,$(AUTO_SRCS))
|
AUTO_DEPS = $(patsubst %,$(BIN)/deps/%.d,$(AUTO_SRCS) core/version.c)
|
||||||
autodeps :
|
autodeps :
|
||||||
@$(ECHO) $(AUTO_DEPS)
|
@$(ECHO) $(AUTO_DEPS)
|
||||||
VERYCLEANUP += $(BIN)/deps
|
VERYCLEANUP += $(BIN)/deps
|
||||||
@@ -1202,7 +1202,7 @@ endif
|
|||||||
# Build version
|
# Build version
|
||||||
#
|
#
|
||||||
GIT_INDEX := $(if $(GITVERSION),$(if $(wildcard ../.git/index),../.git/index))
|
GIT_INDEX := $(if $(GITVERSION),$(if $(wildcard ../.git/index),../.git/index))
|
||||||
$(BIN)/version.%.o : core/version.c $(MAKEDEPS) $(GIT_INDEX)
|
$(BIN)/version.%.o : core/version.c $(MAKEDEPS) $(version_DEPS) $(GIT_INDEX)
|
||||||
$(QM)$(ECHO) " [VERSION] $@"
|
$(QM)$(ECHO) " [VERSION] $@"
|
||||||
$(Q)$(COMPILE_c) -DBUILD_NAME="\"$*\"" \
|
$(Q)$(COMPILE_c) -DBUILD_NAME="\"$*\"" \
|
||||||
-DVERSION_MAJOR=$(VERSION_MAJOR) \
|
-DVERSION_MAJOR=$(VERSION_MAJOR) \
|
||||||
|
|||||||
Reference in New Issue
Block a user