diff --git a/ghc.mk b/ghc.mk
index e20437547cba974c2f340e68c2a9fa21d3abccc7..f69e403c1775e978b7acfe638e8246962ff4b298 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -32,7 +32,7 @@ utils/haddock_dist_MODULES += Paths_haddock
 
 ifeq "$(HADDOCK_DOCS)" "YES"
 install: install_utils/haddock_data
-ifeq "$(Windows)" "NO"
+ifeq "$(Windows_Host)" "NO"
 install: install_utils/haddock_link
 endif
 endif