#
# Tickets we can now close, or fix and close:
#
-# * 2966 make sure --with-gcc does the right thing (#2966)
# * 1693 make distclean
# * 3173 make install with DESTDIR
# o libraries/*
# o compiler
+.PHONY: default all haddock
+
default : all
# Just bring makefiles up to date:
PACKAGES += haskeline
+ifneq "$(BootingFromHc)" "YES"
PACKAGES_STAGE2 += \
dph/dph-base \
dph/dph-prim-interface \
dph/dph-prim-par \
dph/dph-seq \
dph/dph-par
+endif
BOOT_PKGS = Cabal hpc extensible-exceptions
gmp \
docs/users_guide \
libraries/Cabal/doc \
- $(GHC_MANGLER_DIR) \
- $(GHC_SPLIT_DIR) \
$(GHC_UNLIT_DIR) \
$(GHC_HP2PS_DIR)
+ifneq "$(GhcUnregisterised)" "YES"
+BUILD_DIRS += \
+ $(GHC_MANGLER_DIR) \
+ $(GHC_SPLIT_DIR)
+endif
+
ifneq "$(BINDIST)" "YES"
BUILD_DIRS += \
$(GHC_GENPRIMOP_DIR)
ifneq "$(CLEANING)" "YES"
BUILD_DIRS += \
- $(patsubst %, libraries/%, $(PACKAGES) $(PACKAGES_STAGE2)) \
+ $(patsubst %, libraries/%, $(PACKAGES) $(PACKAGES_STAGE2))
+ifneq "$(BootingFromHc)" "YES"
+BUILD_DIRS += \
libraries/dph
endif
+endif
BUILD_DIRS += \
compiler \
CLEAN_FILES += utils/ghc-pwd/ghc-pwd.exe
CLEAN_FILES += utils/ghc-pwd/ghc-pwd.hi
CLEAN_FILES += utils/ghc-pwd/ghc-pwd.o
+CLEAN_FILES += libraries/bootstrapping.conf
clean : clean_files
.PHONY: clean_files
.PHONY: all_libraries
.PHONY: bootstrapping-files
-bootstrapping-files: $(GMP_LIB)
+bootstrapping-files: $(OTHER_LIBS)
bootstrapping-files: includes/ghcautoconf.h
bootstrapping-files: includes/DerivedConstants.h
bootstrapping-files: includes/GHCConstants.h