aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))), \