aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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