From: sof Date: Wed, 7 Nov 2001 20:17:37 +0000 (+0000) Subject: [project @ 2001-11-07 20:17:37 by sof] X-Git-Tag: Approximately_9120_patches~609 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e27d9dee54a2bacabeeedd29ab3a4314e5912138;p=ghc-hetmet.git [project @ 2001-11-07 20:17:37 by sof] Avoid using $(shell ...) functions - expensive buggers. --- diff --git a/mk/config.mk.in b/mk/config.mk.in index 8a306de..fd34c2d 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -436,13 +436,8 @@ ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" DEFAULT_TMPDIR = C:/TEMP endif -# FPTOOLS_TOP: the top of the fptools hierarchy, absolute path. - -ifeq "$(findstring $(TARGETPLATFORM), i386-unknown-cygwin32 i386-unknown-mingw32)" "" -FPTOOLS_TOP_ABS = @hardtop@ -else -FPTOOLS_TOP_ABS = $(subst \,/,$(shell cygpath -w @hardtop@)) -endif +# FPTOOLS_TOP: the top of the fptools hierarchy, absolute path. (platform-specific format). +FPTOOLS_TOP_ABS = @hardtop_plat@ # Keep the Unix-style path to use with Unix tools (e.g. in ghc-inplace script) FPTOOLS_TOP_ABS_UNIX = @hardtop@ @@ -833,7 +828,7 @@ HAPPY_VERSION = @HappyVersion@ # # Options to pass to Happy when we're going to compile the output with GHC # -GHC_HAPPY_OPTS = $(shell if ( test `echo $(HAPPY_VERSION) | sed -e "s/\(.*\)\..*/\1/g"` "-gt" "1" || test `echo $(HAPPY_VERSION) | sed -e "s/.*\.\(.*\)/\1/g"` "-ge" "9" ); then echo -agc; else echo -g; fi) +GHC_HAPPY_OPTS = @HappyOpts@ # # Stuff from fptools/literate