X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Finstall.mk.in;h=6d9f9027f94147ac45b77e525d37957f8ed0ef6b;hb=50d0293555691012f96259de7f8682b94db58517;hp=b63ffe38d736516756465f942c7973583a476deb;hpb=ebd230eb1c459d4d2fdff5d08830e5df37c7c9f9;p=ghc-hetmet.git diff --git a/mk/install.mk.in b/mk/install.mk.in index b63ffe3..6d9f902 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 +# because of all those shell invocations.) +ifeq "$(OSTYPE)" "cygwin" MK_INSTALL_DEST = "$(shell cygpath $1)" +else +MK_INSTALL_DEST = $1 endif #