[project @ 2004-05-18 07:53:34 by mthomas]
authormthomas <unknown>
Tue, 18 May 2004 07:53:34 +0000 (07:53 +0000)
committermthomas <unknown>
Tue, 18 May 2004 07:53:34 +0000 (07:53 +0000)
Windows make install sees an eagle.  It's heart aches - one day it will soar.

mk/config.mk.in

index 4627356..4ffb915 100644 (file)
@@ -521,21 +521,52 @@ FPTOOLS_TOP_ABS_PLATFORM = @hardtop_plat@
 # but since the configure script has them on offer while
 # passing through, we might as well set them.
 
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+
 prefix                 = @prefix@
 exec_prefix            = @exec_prefix@
 bindir                 = @bindir@
 datadir0               = @datadir@
-
-#sysconfdir            = @datadir@
-#sharedstatedir                = @sharedstatedir@
-#localstatedir         = @localstatedir@
 libdir0                        = @libdir@
 includedir             = @includedir@
 oldincludedir          = @oldincludedir@
 mandir                 = @mandir@
 
-#UNUSED:infodir                = @infodir@
-#UNUSED:srcdir          = @srcdir@
+ifeq "$(strip $(prefix))" ""
+prefix         = c:/ghc
+endif
+
+ifacedir   = $(libdir)
+
+ifeq "$(strip $(exec_prefix))" ""
+exec_prefix            = $(prefix)
+endif
+ifeq "$(strip $(bindir))" ""
+bindir                 = $(exec_prefix)/bin
+endif
+
+libexecdir             = $(libdir)
+
+ifeq "$(strip $(datadir))" ""
+datadir                = $(prefix)/imports
+endif
+ifeq "$(strip $(libdir))" ""
+libdir         = $(prefix)
+endif
+ifeq "$(strip $(includedir))" ""
+includedir     = $(prefix)/include
+endif
+
+else
+
+prefix                 = @prefix@
+exec_prefix            = @exec_prefix@
+bindir                 = @bindir@
+datadir0               = @datadir@
+libdir0                        = @libdir@
+includedir             = @includedir@
+oldincludedir          = @oldincludedir@
+mandir                 = @mandir@
 
 #
 # override libdir and datadir to put project-specific stuff in
@@ -585,6 +616,9 @@ ifeq "$(strip $(mandir))" ""
 mandir         = $(prefix)/man
 endif
 
+endif  # i386-unknown-mingw32
+
+
 ################################################################################
 #
 #              Utilities programs: flags