diff options
author | Michael Brown <mcb30@ipxe.org> | 2022-01-13 13:43:08 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2022-01-13 13:43:08 +0000 |
commit | fbbdc39260cf37aa749e897e773f59807d1b8362 (patch) | |
tree | 518a1f6296199ee93ea5830b4442ab1f36a67b31 | |
parent | 53a5de3641ccd0836aac7378cdd37c9757e2db3a (diff) | |
download | ipxe-fbbdc39260cf37aa749e897e773f59807d1b8362.zip ipxe-fbbdc39260cf37aa749e897e773f59807d1b8362.tar.gz ipxe-fbbdc39260cf37aa749e897e773f59807d1b8362.tar.bz2 |
[build] Ensure version.%.o is always rebuilt as expected
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/Makefile.housekeeping | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 0deb15c..24ed5d1 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) \ |