X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.mk;h=03971be82ac2197341d5854ece6a614c3d9ca874;hb=0c658578d609f93a25a8dff97b5cead055b246e3;hp=b6592f24eff867f323eec00da83cc61ad2bc3999;hpb=f041c305d30b04fea6b3b784ca3cc5151a52e06d;p=ghc-hetmet.git diff --git a/compiler/ghc.mk b/compiler/ghc.mk index b6592f2..03971be 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -35,6 +35,8 @@ compiler_stage1_MKDEPENDC_OPTS = -DMAKING_GHC_BUILD_SYSTEM_DEPENDENCIES compiler_stage2_MKDEPENDC_OPTS = -DMAKING_GHC_BUILD_SYSTEM_DEPENDENCIES compiler_stage3_MKDEPENDC_OPTS = -DMAKING_GHC_BUILD_SYSTEM_DEPENDENCIES +compiler_stage1_C_FILES_NODEPS = compiler/parser/cutils.c + ifneq "$(BINDIST)" "YES" compiler/stage1/package-data.mk : $(compiler_CONFIG_HS) compiler/stage2/package-data.mk : $(compiler_CONFIG_HS) @@ -393,7 +395,7 @@ compiler_stage3_CONFIGURE_OPTS := $(compiler_stage2_CONFIGURE_OPTS) compiler_stage1_CONFIGURE_OPTS += --ghc-option=-DSTAGE=1 compiler_stage2_CONFIGURE_OPTS += --ghc-option=-DSTAGE=2 compiler_stage3_CONFIGURE_OPTS += --ghc-option=-DSTAGE=3 -compiler_stage2_HADDOCK_OPTS += --haddock-option=--optghc=-DSTAGE=2 +compiler_stage2_HADDOCK_OPTS += --optghc=-DSTAGE=2 compiler_stage1_CONFIGURE_OPTS += --ghc-options='$(GhcStage1HcOpts)' compiler_stage2_CONFIGURE_OPTS += --ghc-options='$(GhcStage2HcOpts)' @@ -421,9 +423,11 @@ compiler_PACKAGE = ghc # below. # The ProjectPatchLevel > 20000000 iff it's a date. If it's e.g. 6.12.1 # then we don't want to remove it +ifneq "$(CLEANING)" "YES" ifeq "$(shell [ $(ProjectPatchLevel) -gt 20000000 ] && echo YES)" "YES" compiler_stage1_VERSION_MUNGED = YES endif +endif ifeq "$(compiler_stage1_VERSION_MUNGED)" "YES" define compiler_PACKAGE_MAGIC @@ -464,6 +468,9 @@ ifeq "$(stage)" "3" $(eval $(call build-package,compiler,stage3,2)) endif +compiler_stage2_TAGS_HC_OPTS = -package ghc +$(eval $(call tags-package,compiler,stage2)) + $(compiler_stage1_depfile_haskell) : compiler/stage1/$(PLATFORM_H) $(compiler_stage2_depfile_haskell) : compiler/stage2/$(PLATFORM_H) $(compiler_stage3_depfile_haskell) : compiler/stage3/$(PLATFORM_H)