summaryrefslogtreecommitdiff
path: root/mk/install.mk.in
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2011-01-13 15:50:23 +0000
committersimonpj@microsoft.com <unknown>2011-01-13 15:50:23 +0000
commit5775d5142da227d65fb86994d363eb16841ee642 (patch)
tree3bc6ff769c7f23727b5e6c54cd83c6a7ab30205f /mk/install.mk.in
parent02d2dde49eaa614995a7e168d229e8b5cb88eafe (diff)
downloadhaskell-5775d5142da227d65fb86994d363eb16841ee642.tar.gz
Add OSTYPE build-system variable, and use it
The use is in install.mk.in, where we need to know when we're on Cygwin. This fixes the build on my Windows box, where I have both Msys and Cygwin.
Diffstat (limited to 'mk/install.mk.in')
-rw-r--r--mk/install.mk.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/mk/install.mk.in b/mk/install.mk.in
index b63ffe38d7..6d5f724ea6 100644
--- a/mk/install.mk.in
+++ b/mk/install.mk.in
@@ -159,11 +159,13 @@ INSTALL_DIR = $(INSTALL) -m 755 -d $(call MK_INSTALL_DEST,$1)
# This causes problems for bindisttest/checkBinaries.sh which then
# thinks that e.g. the userguide HTML files are binaries.
#
-# We therefore use a /cygdrive path if we are on cygwin
-ifeq '$(shell cygpath "c:/" 2> /dev/null)' ''
-MK_INSTALL_DEST = $1
-else
+# We therefore use a /cygdrive path if we are on cygwin (only)
+# (This will make a Cygwin build run slowly
+# becuase of all those shell invocations.)
+ifeq "$OSTYPE" "cygwin"
MK_INSTALL_DEST = "$(shell cygpath $1)"
+else
+MK_INSTALL_DEST = $1
endif
#