Merge pull request #90 from phl0/fixWindooze

Make Makefile compatible with builds on Windows
c4fmdemod
Jonathan Naylor 2017-04-18 06:09:50 +01:00 committed by GitHub
commit 7f181133c7
1 changed files with 6 additions and 0 deletions

View File

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