summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2022-01-13 14:43:08 +0100
committerMichael Brown2022-01-13 14:43:08 +0100
commitfbbdc39260cf37aa749e897e773f59807d1b8362 (patch)
tree518a1f6296199ee93ea5830b4442ab1f36a67b31 /src/Makefile.housekeeping
parent[doc] Update user-visible ipxe.org URIs to use HTTPS (diff)
downloadipxe-fbbdc39260cf37aa749e897e773f59807d1b8362.tar.gz
ipxe-fbbdc39260cf37aa749e897e773f59807d1b8362.tar.xz
ipxe-fbbdc39260cf37aa749e897e773f59807d1b8362.zip
[build] Ensure version.%.o is always rebuilt as expected
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 0deb15c1..24ed5d13 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -918,7 +918,7 @@ $(BIN)/deps/%.d : % $(MAKEDEPS)
# 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 :
@$(ECHO) $(AUTO_DEPS)
VERYCLEANUP += $(BIN)/deps
@@ -1202,7 +1202,7 @@ endif
# Build version
#
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] $@"
$(Q)$(COMPILE_c) -DBUILD_NAME="\"$*\"" \
-DVERSION_MAJOR=$(VERSION_MAJOR) \