aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-21 12:20:16 +0000
committerIan Lynagh <igloo@earth.li>2008-09-21 12:20:16 +0000
commit54713fd0368e2e85aa389899d4bf3346492343e7 (patch)
tree53a6d13c1f6081eb107cf85074180f5754dc28ea /Makefile
parentb041d5b0ada87401a861909db62b4ee95b25c061 (diff)
Fix the in-tree haddock on Windows
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 745ec5da..75f61a37 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,12 @@ ifneq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
INSTALL_INPLACE_FLAGS += --enable-shell-wrappers
endif
+ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
+INPLACE_DATADIR = '$$prefix'
+else
+INPLACE_DATADIR = '$$prefix/share'
+endif
+
install-inplace:
$(INSTALL_PACKAGE) install '$(GHC_PKG_PROG)' '$(INPLACE_PKG_CONF)' '' \
'$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace' \
@@ -38,7 +44,7 @@ install-inplace:
'$$prefix/lib' \
'$$prefix/libexec' \
'$$prefix/dynlib' \
- '$$prefix/share' \
+ $(INPLACE_DATADIR) \
'$$prefix/doc' \
'$$prefix/html' \
'$$prefix/haddock' \