1 ifeq ($(OS),Windows_NT)
2 GIT=C:\\Program Files (x86)\\Git\\bin\\git.exe
3 ifeq ($(shell $(GIT) version),)
4 GIT=C:\\Program Files\\Git\\bin\\git.exe
5 ifeq ($(shell $(GIT) version),)
13 VERSION:=$(shell "$(GIT)" describe)
14 VERSION:=$(if $(VERSION),$(VERSION),unknown)
16 ifneq ($(VERSION),unknown)
17 # Always update version.h if we are in a git repo. Otherwise create
18 # the file only if it does not exist.
23 ifeq ($(OS),Windows_NT)
24 echo #define GIT_VERSION "$(VERSION)" > $@
26 echo '#define GIT_VERSION "$(VERSION)"' > $@