diff --git a/Makefile b/Makefile index f2edc40d58..f66541d3ea 100644 --- a/Makefile +++ b/Makefile @@ -831,6 +831,9 @@ CLEAN_ARTIFACTS := $(TARGET_BIN) CLEAN_ARTIFACTS += $(TARGET_HEX) CLEAN_ARTIFACTS += $(TARGET_ELF) $(TARGET_OBJS) $(TARGET_MAP) +# Make sure build date and revision is updated on every incremental build +$(OBJECT_DIR)/$(TARGET)/build/version.o : $(TARGET_SRC) + # List of buildable ELF files and their object dependencies. # It would be nice to compute these lists, but that seems to be just beyond make.