[project @ 2001-04-04 11:21:10 by rrt]
authorrrt <unknown>
Wed, 4 Apr 2001 11:21:10 +0000 (11:21 +0000)
committerrrt <unknown>
Wed, 4 Apr 2001 11:21:10 +0000 (11:21 +0000)
Make FPTOOLS_TOP_ABS in a neater way.

mk/config.mk.in

index dc252ee..3de4aab 100644 (file)
@@ -401,14 +401,13 @@ endif
 
 # FPTOOLS_TOP: the top of the fptools hierarchy, absolute path.
 
+ifeq "$(findstring $(TARGETPLATFORM), i386-unknown-cygwin32 i386-unknown-mingw32)" ""
 FPTOOLS_TOP_ABS                = @hardtop@
-FPTOOLS_TOP_ABS_UNIX    = @hardtop@
-ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32"
-FPTOOLS_TOP_ABS                = $(subst \,/,$(shell cygpath -w @hardtop@))
-endif
-ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+else
 FPTOOLS_TOP_ABS                = $(subst \,/,$(shell cygpath -w @hardtop@))
 endif
+# Keep the Unix-style path to use with Unix tools (e.g. in ghc-inplace script)
+FPTOOLS_TOP_ABS_UNIX    = @hardtop@
 
 #
 # Installation directories, we don't use half of these,