CONFIGURE_FLAGS_STAGE2 += $(USE_STAGE1_CONFIGURE_FLAGS)
CONFIGURE_FLAGS_STAGE3 += $(USE_STAGE2_CONFIGURE_FLAGS)
-boot.stage.%:
+boot.stage.%: $(PRIMOP_BITS) $(CONFIG_HS) parser/Parser.y
$(CABAL) configure --distpref dist-stage$* \
$(CONFIGURE_FLAGS_STAGE$*) \
$(INSTALL_DIRS_CONFIGURE_FLAGS) \
$(RM) -f Makefile-stage$*
$(CABAL) makefile --distpref dist-stage$* -f Makefile-stage$*
-build.stage.%: $(PRIMOP_BITS)
+build.stage.%:
$(MAKE) -f Makefile-stage$* stage=$*
$(CABAL) register --distpref dist-stage$* --inplace
+# XXX We ought to actually install the (stage 2) library
+install:
+ @:
+
stage_dirs :
$(MKDIRHIER) stage$(stage)
# The 'echo' commands simply spit the values of various make variables
# into Config.hs, whence they can be compiled and used by GHC itself
-boot :: $(CONFIG_HS)
-
-boot :: parser/Parser.y
-
$(CONFIG_HS) : $(FPTOOLS_TOP)/mk/config.mk
@$(RM) -f $(CONFIG_HS)
@echo "Creating $(CONFIG_HS) ... "