Adding Florian DF2ET fix Makefile and Windows compatibility

This commit is contained in:
Andy CA6JAU 2017-07-16 23:56:11 -04:00
parent 2a6dff1855
commit 3463eb03c9

View file

@ -235,11 +235,17 @@ endif
# Export the current git version if the index file exists, else 000...
GitVersion.h: .FORCE
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
.FORCE: