X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc.mk;h=bd2bf7c16a0550da8b86ed83294b5631bad05e2b;hb=d150f4ec2ded790bb93ce5c6e68e970916f75cbb;hp=fb6ba938685887ab95f86e66679f6d556d84c71c;hpb=81e5f8ff44ed5c734c9966ba0f3faf2d84c74577;p=ghc-hetmet.git diff --git a/ghc.mk b/ghc.mk index fb6ba93..bd2bf7c 100644 --- a/ghc.mk +++ b/ghc.mk @@ -51,7 +51,6 @@ # # 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 @@ -329,6 +328,7 @@ endif PACKAGES += haskeline +ifneq "$(BootingFromHc)" "YES" PACKAGES_STAGE2 += \ dph/dph-base \ dph/dph-prim-interface \ @@ -336,6 +336,7 @@ PACKAGES_STAGE2 += \ dph/dph-prim-par \ dph/dph-seq \ dph/dph-par +endif BOOT_PKGS = Cabal hpc extensible-exceptions @@ -467,11 +468,15 @@ BUILD_DIRS += \ 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) @@ -497,9 +502,12 @@ BUILD_DIRS += \ 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 \ @@ -924,7 +932,7 @@ maintainer-clean : distclean .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