diff --git a/lib/ver/Makefile b/lib/ver/Makefile index ee223ae59e..10e3774713 100644 --- a/lib/ver/Makefile +++ b/lib/ver/Makefile @@ -51,6 +51,9 @@ include $(CPP_SRC_HOME)/mk/staticlib.mk .PHONY: force CBuildInfo.cc: force + git update-index -q --refresh > /dev/null + git diff-index HEAD -- + false @sed "s/@build.year@/$(BUILD_YEAR)/" < CBuildInfo.cc.$(TEMPLATE) \ | sed "s/@warning.comment@/DO NOT EDIT THIS FILE - instead edit BOTH templates/" \ | sed "s/@user.name@/$(USER_NAME)/" \