From 0f2f24589e8eee1ae24d78ad9863d2df5f7d7a3b Mon Sep 17 00:00:00 2001
From: Sebastian Schuberth <sschuberth@gmail.com>
Date: Wed, 4 Sep 2013 18:18:49 +0200
Subject: [PATCH] Makefile: Set htmldir to match the default HTML docs location
 under MSYS

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
 config.mak.uname | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.mak.uname b/config.mak.uname
index 02b4b1ddcc75a2..406ef1f2f739d0 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -517,7 +517,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
 	X = .exe
 	SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
 ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
-	htmldir = doc/git/html/
+	htmldir = share/doc/git/$(firstword $(subst -, ,$(GIT_VERSION)))/html
 	prefix =
 	INSTALL = /bin/install
 	EXTLIBS += /mingw/lib/libz.a