|
@@ -659,6 +659,10 @@ CFLAGS_version += -DVERSION_MAJOR=$(VERSION_MAJOR) \
|
659
|
659
|
-DVERSION_MINOR=$(VERSION_MINOR) \
|
660
|
660
|
-DVERSION_PATCH=$(VERSION_PATCH) \
|
661
|
661
|
-DVERSION="\"$(VERSION)\""
|
|
662
|
+# Make sure the version number gets updated on every git checkout
|
|
663
|
+ifneq ($(GITVERSION),)
|
|
664
|
+$(BIN)/version.o : ../.git/index
|
|
665
|
+endif
|
662
|
666
|
|
663
|
667
|
# We automatically generate rules for any file mentioned in AUTO_SRCS
|
664
|
668
|
# using the following set of templates. It would be cleaner to use
|