From 54825d3531346ee52a48163f2e2b14d62b90d13b Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 28 Aug 2008 14:22:29 +0000 Subject: Fixes for using haddock in a GHC build tree --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1856d274..30535abb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,28 @@ TOP=../.. ENABLE_SHELL_WRAPPERS = YES +EXTRA_INPLACE_CONFIGURE_FLAGS += --flags=-ghc-paths +EXTRA_STAGE2_CONFIGURE_FLAGS += --flags=-ghc-paths include $(TOP)/mk/boilerplate.mk include $(TOP)/mk/cabal.mk +SRC_HC_OPTS += -w + +.PHONY: install-inplace + +INPLACE_PKG_CONF = $(FPTOOLS_TOP_ABS)/ghc/inplace-datadir/package.conf + +install-inplace: + $(INSTALL_PACKAGE) install '$(GHC_PKG_PROG)' '$(INPLACE_PKG_CONF)' '' \ + '$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace' \ + '$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace' \ + '$$prefix/bin' \ + '$$prefix/lib' \ + '$$prefix/libexec' \ + '$$prefix/dynlib' \ + '$$prefix/share' \ + '$$prefix/doc' \ + '$$prefix/html' \ + '$$prefix/haddock' \ + --distpref dist-install --enable-shell-wrappers -- cgit v1.2.3