aboutsummaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-09-21 21:39:51 +0000
committerIan Lynagh <igloo@earth.li>2010-09-21 21:39:51 +0000
commitefa3ddb87e4f9e3b1efc5fc2161bcad53dc7016a (patch)
tree95ad31cb000f64e01f0506e9656760511e94e656 /ghc.mk
parent073f2ca1ed3fbfe1dd78cf95faf5dfa2a3f4e43e (diff)
Fixes for when HADDOCK_DOCS=NO
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index c5a28c8b..cd420e10 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -30,13 +30,16 @@ $(eval $(call build-prog,utils/haddock,dist,2))
utils/haddock_dist_MODULES += Paths_haddock
+ifeq "$(HADDOCK_DOCS)" "YES"
install: install_utils/haddock_html
+install: install_utils/haddock_data
+endif
+
.PHONY: install_utils/haddock_html
install_utils/haddock_html:
$(INSTALL_DIR) "$(DESTDIR)$(docdir)/html"
"$(CP)" -R utils/haddock/html "$(DESTDIR)$(docdir)/html"
-install: install_utils/haddock_data
.PHONY: install_utils/haddock_data
install_utils/haddock_data:
$(foreach i,$(sort $(dir $(utils/haddock_dist_DATA_FILES))), \