X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.mk;h=22459b5831d78062498ab2d0e8b85446a905bd81;hb=2a4517655a45e798cc4716be9b7d0abc3c900887;hp=a1969e8f98480518583cd29d67320d05df8e9a1b;hpb=34cc75e1a62638f2833815746ebce0a9114dc26b;p=ghc-hetmet.git diff --git a/compiler/ghc.mk b/compiler/ghc.mk index a1969e8..22459b5 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -1,4 +1,16 @@ # ----------------------------------------------------------------------------- +# +# (c) 2009 The University of Glasgow +# +# This file is part of the GHC build system. +# +# To understand how the build system works and how to modify it, see +# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture +# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying +# +# ----------------------------------------------------------------------------- + +# ----------------------------------------------------------------------------- # For expressing extra dependencies on source files define compiler-hs-dependency # args: $1 = module, $2 = dependency @@ -392,6 +404,16 @@ compiler/stage3/package-data.mk : compiler/ghc.mk compiler_PACKAGE = ghc +# The version of the GHC package changes every day, since the +# patchlevel is the current date. We don't want to force +# recompilation of the entire compiler when this happens, so for stage +# 1 we omit the patchlevel from the version number. For stage 2 we +# have to include the patchlevel since this is the package we install, +# however. +define compiler_PACKAGE_MAGIC +compiler_stage1_VERSION = $(subst .$(ProjectPatchLevel),,$(ProjectVersion)) +endef + # haddocking only happens for stage2 compiler_stage1_DO_HADDOCK = NO compiler_stage3_DO_HADDOCK = NO