From efa3ddb87e4f9e3b1efc5fc2161bcad53dc7016a Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 21 Sep 2010 21:39:51 +0000 Subject: Fixes for when HADDOCK_DOCS=NO --- ghc.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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))), \ -- cgit v1.2.3