|
|
|
@ -235,11 +235,17 @@ endif
|
|
|
|
|
|
|
|
|
|
|
|
# Export the current git version if the index file exists, else 000...
|
|
|
|
# Export the current git version if the index file exists, else 000...
|
|
|
|
GitVersion.h: .FORCE
|
|
|
|
GitVersion.h: .FORCE
|
|
|
|
|
|
|
|
ifdef SYSTEMROOT
|
|
|
|
|
|
|
|
echo #define GITVERSION "0000000" > $@
|
|
|
|
|
|
|
|
else ifdef SystemRoot
|
|
|
|
|
|
|
|
echo #define GITVERSION "0000000" > $@
|
|
|
|
|
|
|
|
else
|
|
|
|
ifneq ("$(wildcard .git/index)","")
|
|
|
|
ifneq ("$(wildcard .git/index)","")
|
|
|
|
echo "#define GITVERSION \"$(shell git rev-parse --short HEAD)\"" > $@
|
|
|
|
echo "#define GITVERSION \"$(shell git rev-parse --short HEAD)\"" > $@
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "#define GITVERSION \"0000000\"" > $@
|
|
|
|
echo "#define GITVERSION \"0000000\"" > $@
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
.FORCE:
|
|
|
|
.FORCE:
|
|
|
|
|
|
|
|
|
|
|
|
|