From db0c34cd9e76a69b0b06b9a31065eb8e23333f3a Mon Sep 17 00:00:00 2001
From: Ian Lynagh <igloo@earth.li>
Date: Wed, 19 Jan 2011 17:23:10 +0000
Subject: [PATCH] Fix libraries/index.html's haddock dependency on Windows

---
 ghc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ghc.mk b/ghc.mk
index ddb657f3cf2..8d95bf82ea5 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -703,7 +703,7 @@ $(foreach p,$(STAGE0_PACKAGES),$(eval libraries/$p_dist-boot_DO_HADDOCK = NO))
 
 # Build the Haddock contents and index
 ifeq "$(HADDOCK_DOCS)" "YES"
-libraries/index.html: inplace/bin/haddock $(ALL_HADDOCK_FILES)
+libraries/index.html: inplace/bin/haddock$(exeext) $(ALL_HADDOCK_FILES)
 	cd libraries && sh gen_contents_index --inplace
 ifeq "$(phase)" ""
 $(eval $(call all-target,library_doc_index,libraries/index.html))
-- 
GitLab