-#-----------------------------------------------------------------------------
-# Dependency generation
-
-SRC_MKDEPENDHS_OPTS += -ighc:required:glaExts:concurrent -I$(GHC_INCLUDE_DIR)
-
-#-----------------------------------------------------------------------------
-# Rules
-
-# In preparation for building the various libHS* libraries,
-# we create the interface files needed to boot their build.
-#
-# Note that the creation of IOBase, Main and GHC interface
-# files for umpteen ways is strictly not necessary, they're
-# all the same, but having the redundant files prevents us
-# from having to treat the said interface files specially
-# when creating the dependencies.
-#
-# Note: if you change the *.hi-boot files, this will not be
-# picked up by the Makefile, you'll have to `make hi-boot'
-#
-# Note2: hsc will only read from ghc/GHC.hi regardless of
-# which `way' you're compiling, so the copies of the GHC
-# interface file for the different ways are only there
-# to pacify `make'
-
-HIBOOTS=GHC Main IOBase
-
-# Use variable to control this, so that we can generate
-# new boot interface files for new ways without having
-# to re-generate the old lot (followed by complete recompile).
-#
-HIBOOT_WAYS = norm $(WAYS)
-
-hi-boot :
- @for i in $(HIBOOT_WAYS); do \
- echo "Booting interface files for way $$i "; \
- if [ "$$i" != "norm" ]; then \
- j="$${i}_hi"; \
- else \
- j='hi'; \
- fi; \
- for ifile in $(HIBOOTS); do \
- echo ".. ghc/$${ifile}.$$j "; \
- cp ghc/$${ifile}.hi-boot ghc/$${ifile}.$${j}; \
- done; \
- done
- @touch ghc/IOBase.lhs
-
-boot :: hi-boot
-
-#-----------------------------------------------------------------------------
-# Installation; need to install .hi files as well as libraries
-#
-# The interface files are put inside the $(libdir), since they
-# might (potentially) be platform specific..
-#
-# Note: we use `override' here to ignore the setting of datadir
-# which may have been set on the command-line..naughty, as it
-# prevents `datadir' from being used from the command-line.
-# This only applies to binary-distributions, though.n
-
-ifeq "$(BIN_DIST)" "1"
-override datadir:=$(libdir)/imports