Generate the bit in the user guide where we say what -fglasgow-exts does
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index 2359c82..b7c81d1 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -351,7 +351,7 @@ $(foreach pkg,$(EXTRA_PACKAGES),$(eval $(call addPackage,$(pkg))))
 
 ifneq "$(BootingFromHc)" "YES"
 
-ifneq "$(GhcProfiled)" "YES"
+ifneq "$(CLEANING) $(GhcProfiled)" "NO YES"
 # DPH uses Template Haskell, and Template Haskell doesn't work
 # with a profiled compiler. So if stage-2 is profile, don't build DPH
 PACKAGES_STAGE2 += \
@@ -574,6 +574,11 @@ BUILD_DIRS += \
    $(GHC_TOUCHY_DIR)
 endif
 
+ifneq "$(BINDIST)" "YES"
+BUILD_DIRS += \
+   utils/mkUserGuidePart
+endif
+
 BUILD_DIRS += utils/count_lines
 BUILD_DIRS += utils/compare_sizes
 
@@ -608,6 +613,7 @@ utils/ghctags_dist_DISABLE = YES
 utils/hpc_dist_DISABLE = YES
 utils/hsc2hs_dist-install_DISABLE = YES
 utils/ghc-pkg_dist-install_DISABLE = YES
+utils/mkUserGuidePart_dist_DISABLE = YES
 utils/compare_sizes_dist_DISABLE = YES
 compiler_stage2_DISABLE = YES
 compiler_stage3_DISABLE = YES