diff options
author | Ian Lynagh <igloo@earth.li> | 2008-07-17 15:07:46 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-07-17 15:07:46 +0000 |
commit | 48c3232a53eb5a0594991e4af602bf91364a2cc4 (patch) | |
tree | 83d7b155ee30cbf65a3bc99992067644d1711365 /compiler/Makefile | |
parent | bcbd8d8e5f42e11c68d36c601233b37afb2b11be (diff) | |
download | haskell-48c3232a53eb5a0594991e4af602bf91364a2cc4.tar.gz |
Split building the ghc package and binary into "boot" and "all" steps
In "boot" we configure, and in "all" we do the actual building.
Diffstat (limited to 'compiler/Makefile')
-rw-r--r-- | compiler/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/Makefile b/compiler/Makefile index 3e2ae8d988..4722a5ba3c 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -40,6 +40,8 @@ PRIMOP_BITS = primop-data-decl.hs-incl \ primop-strictness.hs-incl \ primop-primop-info.hs-incl +boot:: boot.stage.$(stage) + all:: build.stage.$(stage) stage1 :: @@ -160,7 +162,7 @@ CONFIGURE_FLAGS_STAGE1 += $(USE_BOOT_CONFIGURE_FLAGS) CONFIGURE_FLAGS_STAGE2 += $(USE_STAGE1_CONFIGURE_FLAGS) CONFIGURE_FLAGS_STAGE3 += $(USE_STAGE2_CONFIGURE_FLAGS) -build.stage.%: $(PRIMOP_BITS) +boot.stage.%: $(CABAL) configure --distpref dist-stage$* \ $(CONFIGURE_FLAGS_STAGE$*) \ $(INSTALL_DIRS_CONFIGURE_FLAGS) \ @@ -168,6 +170,8 @@ build.stage.%: $(PRIMOP_BITS) --ghc-option=-DSTAGE=$* $(RM) -f Makefile-stage$* $(CABAL) makefile --distpref dist-stage$* -f Makefile-stage$* + +build.stage.%: $(PRIMOP_BITS) $(MAKE) -f Makefile-stage$* stage=$* $(CABAL) register --distpref dist-stage$* --inplace |