From cd844a66e94dec45c5d88d05ce50d84d56e46d07 Mon Sep 17 00:00:00 2001 From: sof Date: Fri, 9 Nov 2001 17:39:45 +0000 Subject: [PATCH] [project @ 2001-11-09 17:39:45 by sof] Optimised defn of CANON_HC_VERSION, synthesise it from config.mk info, not via an expensive $(shell ...) call. --- ghc/compiler/Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 0e29e82..011a607 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.199 2001/11/09 17:02:09 sof Exp $ +# $Id: Makefile,v 1.200 2001/11/09 17:39:45 sof Exp $ TOP = .. include $(TOP)/mk/boilerplate.mk @@ -109,15 +109,9 @@ SRC_HC_OPTS += -DJAVA endif # -# Canonicalize the GHC version number - assume it is has the form x.yy.[z] or -# x.yy[.date] where date = yyyymmdd +# Canonicalized GHC version number for easy version comparisons. # -# [First sed substitution gets rid of the '.', second gets rid of the date portion, -# third appends a '0' if the z portion is missing] -# -CANON_HC_VERSION=$(shell echo "$(GhcVersion)" | sed -e 's/\.//g;s/^\(...\)........$$/\1/g;s/^\(...\)$$/\10/g') - -# 20010625 +CANON_HC_VERSION=$(GhcMajVersion)$(GhcMinVersion)$(GhcPatchLevel) ifeq "$(BootingFromHc)" "YES" # HC files are always from a self-booted compiler -- 1.7.10.4