-build.stage1: $(PRIMOP_BITS)
- $(CABAL) configure --distpref dist-stage1 \
- $(CONFIGURE_FLAGS_STAGE1) \
- $(INSTALL_DIRS_CONFIGURE_FLAGS) \
- $(USE_BOOT_CONFIGURE_FLAGS) \
- $(COMMON_CONFIGURE_FLAGS) \
- --flags=-ghci \
- --flags=stage1 \
- --ghc-option=-DSTAGE=1
- $(RM) -f Makefile-stage1
- $(CABAL) makefile --distpref dist-stage1 -f Makefile-stage1
- $(MAKE) -f Makefile-stage1 stage=1
- $(CABAL) register --distpref dist-stage1 --inplace
+CONFIGURE_FLAGS_STAGE3 = $(CONFIGURE_FLAGS_STAGE2)
+CONFIGURE_FLAGS_STAGE1 += $(USE_BOOT_CONFIGURE_FLAGS)
+CONFIGURE_FLAGS_STAGE2 += $(USE_STAGE1_CONFIGURE_FLAGS)
+CONFIGURE_FLAGS_STAGE3 += $(USE_STAGE2_CONFIGURE_FLAGS)