From 3463eb03c98021c62c55545ef8bb36041cfffa76 Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sun, 16 Jul 2017 23:56:11 -0400 Subject: [PATCH] Adding Florian DF2ET fix Makefile and Windows compatibility --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index ea2b88e..cc90e84 100644 --- a/Makefile +++ b/Makefile @@ -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: