[project @ 2001-01-19 15:02:38 by rrt]
authorrrt <unknown>
Fri, 19 Jan 2001 15:02:38 +0000 (15:02 +0000)
committerrrt <unknown>
Fri, 19 Jan 2001 15:02:38 +0000 (15:02 +0000)
Path mangling for Windows to try to make ghc-inplace work when installed on
other drives than C:.

mk/config.mk.in

index 2fe53d5..ce53b28 100644 (file)
@@ -385,10 +385,22 @@ NoFibHcOpts = -O
 # setting the TMPDIR env var would have no effect in the build tree.
 
 DEFAULT_TMPDIR         = /tmp
+ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"
+DEFAULT_TMPDIR         = C:/TEMP
+endif
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+DEFAULT_TMPDIR         = C:/TEMP
+endif
 
 # FPTOOLS_TOP: the top of the fptools hierarchy, absolute path.
 
 FPTOOLS_TOP_ABS                = @hardtop@
+ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"
+FPTOOLS_TOP_ABS                = $(patsubst /cygdrive/%/,%:/,@hardtop@)
+endif
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+FPTOOLS_TOP_ABS                = $(patsubst /cygdrive/%/,%:/,@hardtop@)
+endif
 
 #
 # Installation directories, we don't use half of these,