From 812238d612a22ad86d8c823dcc1dec2af02e3350 Mon Sep 17 00:00:00 2001 From: mthomas Date: Tue, 18 May 2004 07:53:34 +0000 Subject: [PATCH] [project @ 2004-05-18 07:53:34 by mthomas] Windows make install sees an eagle. It's heart aches - one day it will soar. --- mk/config.mk.in | 46 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/mk/config.mk.in b/mk/config.mk.in index 4627356..4ffb9154 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -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 -- 1.7.10.4