-boot: $(BOOTSTRAP_STAMPS) ifBuildable/ifBuildable \
- $(foreach SUBDIR,$(SUBDIRS),$(SUBDIR)/setup/Setup) \
- installPackage/installPackage
-
-# We build the Setup program in a setup subdirectory to stop it trying
-# to use bits of base and Cabal when we build those packages.
-# This also makes it slightly easier to clean.
-
-# We ought to be depending on %/Setup.*hs, but make makes that difficult.
-
-$(foreach SUBDIR,$(SUBDIRS),$(SUBDIR)/setup/Setup): \
-%/setup/Setup: $(BOOTSTRAP_STAMPS)
- -$(RM) -rf $*/setup
- mkdir $*/setup
- $(CP) $*/Setup.*hs $*/setup
- cd $*/setup && $(GHC) -Wall -cpp --make Setup.*hs -o Setup \
- $(BOOTSTRAP_INC_2_UP)
-
-installPackage/installPackage: installPackage.hs $(BOOTSTRAP_STAMPS)
- -$(RM) -rf installPackage
- mkdir installPackage
- $(CP) installPackage.hs installPackage/
-ifeq "$(UseStage1)" "YES"
- cd installPackage && ../$(HC) -Wall -cpp \
- --make installPackage -o installPackage \
- $(BOOTSTRAP_INC_1_UP)
-else
- cd installPackage && $(GHC) -Wall -cpp \
- --make installPackage -o installPackage \
- $(BOOTSTRAP_INC_1_UP)