From 1d6ca99df9f0a625780f21061af1ce6d3cc32d5f Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 17 Apr 2017 23:01:19 +0200 Subject: [PATCH] Make Makefile compatible with builds on Windows --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 4b2a78c..260ae5d 100644 --- a/Makefile +++ b/Makefile @@ -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