aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-28 14:22:29 +0000
committerIan Lynagh <igloo@earth.li>2008-08-28 14:22:29 +0000
commit54825d3531346ee52a48163f2e2b14d62b90d13b (patch)
treedf5ad7cbd4c9803c14463cb2b119ee6371b68e55 /Makefile
parent56f2789e70905b790fc961455bcb9fbe56cc6626 (diff)
Fixes for using haddock in a GHC build tree
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
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