summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-09-21 21:39:16 +0000
committerIan Lynagh <igloo@earth.li>2010-09-21 21:39:16 +0000
commit4e077ce3e4abce11cadb48a6995d358982bf08d2 (patch)
treeb6107afbf5a8723e4112a4002207d833c1c7602c /ghc.mk
parent43e5415176ae4f37462999e636f8e23c90689d2c (diff)
downloadhaskell-4e077ce3e4abce11cadb48a6995d358982bf08d2.tar.gz
Fixes for when HADDOCK_DOCS=NO
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/ghc.mk b/ghc.mk
index 4184e19990..1a45caa920 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -789,8 +789,10 @@ TAGS: TAGS_compiler
# Installation
install: install_packages install_libs install_libexecs install_headers \
- install_libexec_scripts install_bins install_docs \
- install_topdirs
+ install_libexec_scripts install_bins install_topdirs
+ifeq "$(HADDOCK_DOCS)" "YES"
+install: install_docs
+endif
install_bins: $(INSTALL_BINS)
$(INSTALL_DIR) "$(DESTDIR)$(bindir)"