summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-09-03 23:19:21 +0000
committerIan Lynagh <igloo@earth.li>2010-09-03 23:19:21 +0000
commit897a7d971b52905529624d79d7efe39afcc964de (patch)
tree00252f5b4bab6f051bcfa9fb4d3851fd3ed7ec66 /ghc.mk
parentdbd4b5697ca01d0c629511b9ff533fd487a2e919 (diff)
downloadhaskell-897a7d971b52905529624d79d7efe39afcc964de.tar.gz
Don't haddock packages that we aren't going to install
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index 12b0d0c746..f79732c06a 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -312,6 +312,10 @@ define addPackage # args: $1 = package, $2 = condition
endif
endef
+INTREE_ONLY_PACKAGES := haskeline mtl terminfo utf8-string xhtml
+
+$(foreach p,$(INTREE_ONLY_PACKAGES),$(eval libraries/$p_dist-install_HADDOCK_ME = NO))
+
$(eval $(call addPackage,ghc-prim))
ifeq "$(CLEANING)" "YES"
$(eval $(call addPackage,integer-gmp))
@@ -897,7 +901,7 @@ INSTALLED_GHC_REAL=$(DESTDIR)$(bindir)/ghc.exe
INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(bindir)/ghc-pkg.exe
endif
-INSTALLED_PACKAGES := $(filter-out haskeline mtl terminfo utf8-string xhtml,$(PACKAGES))
+INSTALLED_PACKAGES := $(filter-out $(INTREE_ONLY_PACKAGES),$(PACKAGES))
ifeq "$(InstallExtraPackages)" "NO"
INSTALLED_PACKAGES := $(filter-out $(EXTRA_PACKAGES), $(INSTALLED_PACKAGES))
endif