Fix paths used for doc publishing in the nightly builds
authorIan Lynagh <igloo@earth.li>
Sun, 14 Nov 2010 20:55:27 +0000 (20:55 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 14 Nov 2010 20:55:27 +0000 (20:55 +0000)
ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 0d21dcf..91bf43d 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -1076,9 +1076,15 @@ ifeq "$(mingw32_TARGET_OS)" "1"
        $(call try10Times,$(PublishCp) $(WINDOWS_INSTALLER) $(PublishLocation)/dist)
 endif
 
+ifeq "$(mingw32_TARGET_OS)" "1"
+DOCDIR_TO_PUBLISH = bindisttest/"install dir"/doc
+else
+DOCDIR_TO_PUBLISH = bindisttest/"install dir"/share/doc/ghc
+endif
+
 .PHONY: publish-docs
 publish-docs:
-       $(call try10Times,$(PublishCp) -r bindisttest/installed/share/doc/ghc/* $(PublishLocation)/docs)
+       $(call try10Times,$(PublishCp) -r $(DOCDIR_TO_PUBLISH)/* $(PublishLocation)/docs)
 
 # -----------------------------------------------------------------------------
 # Source distributions