ghc.mk: fix 'make install' for cross-mingw32
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 23 Apr 2017 14:31:13 +0000 (15:31 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 23 Apr 2017 14:39:32 +0000 (15:39 +0100)
commit74e5ec9e63ff40bb8d52041cdc2f602d9bf12eb8
tree07594789e6a71c3b067093c532e2956ace249a65
parent8908ba31c4dcb6ce619ec46e88fbbac78651a04b
ghc.mk: fix 'make install' for cross-mingw32

Attempt to install cross-compiled mingw32 GHC built on linux failed as:

    $ make install DESTDIR=$(pwd)/__i__

    "mv" "$(pwd)/__i__/usr/local/lib/ghc-8.3.20170422/bin/ghc-stage2" \
         "$(pwd)/__i__/usr/local/lib/ghc-8.3.20170422/bin/ghc"
    mv: failed to stat
         '$(pwd)/__i__/usr/local/lib/ghc-8.3.20170422/bin/ghc-stage2': \
         No such file or directory

The rename should not be performed for windows targets.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
ghc.mk