summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-11-07 18:36:14 +0000
committerIan Lynagh <igloo@earth.li>2009-11-07 18:36:14 +0000
commitf5b3f16c9321a1594ce1ed0b73914feabaa321a8 (patch)
treeff9568aaad7fd55b1803f01e2bf1d97b0e14f693 /ghc.mk
parent24e30dfa3fe0bb1efef01b1f216d9b5e45309f9c (diff)
downloadhaskell-f5b3f16c9321a1594ce1ed0b73914feabaa321a8.tar.gz
ghc-stage2 is now renamed to ghc when it is installed
This means that we get the right program name in error messages etc.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index 2408049319..94e9080909 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -781,6 +781,9 @@ else
for i in $(INSTALL_LIBEXECS); do \
$(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i "$(DESTDIR)$(ghclibexecdir)"; \
done
+# We rename ghc-stage2, so that the right program name is used in error
+# messages etc.
+ "$(MV)" "$(DESTDIR)$(ghclibexecdir)/ghc-stage2" "$(DESTDIR)$(ghclibexecdir)/ghc"
endif
install_topdir_scripts: $(INSTALL_TOPDIR_SCRIPTS)
@@ -827,7 +830,7 @@ INSTALLED_PACKAGE_CONF=$(DESTDIR)$(topdir)/package.conf.d
# Install packages in the right order, so that ghc-pkg doesn't complain.
# Also, install ghc-pkg first.
ifeq "$(Windows)" "NO"
-INSTALLED_GHC_REAL=$(DESTDIR)$(ghclibexecdir)/ghc-stage2
+INSTALLED_GHC_REAL=$(DESTDIR)$(ghclibexecdir)/ghc
INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(ghclibexecdir)/ghc-pkg
else
INSTALLED_GHC_REAL=$(DESTDIR)$(bindir)/ghc.exe