summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-09-27 14:35:05 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-01 21:36:53 +0100
commitd106284b4018efeb1f3cf2249a4a713539150376 (patch)
tree2bceded334cf8aa6d9bd8efe08910d10fbec4d62 /ghc.mk
parent29f6b87fab42f94b8b5955350f5df800e2dd7b30 (diff)
downloadhaskell-d106284b4018efeb1f3cf2249a4a713539150376.tar.gz
Put libexec binaries in lib/bin/ rather than just lib/
Some binaries are installed in lib/, so if we wanted them to have a shell wrapper then under the old scheme both the binary and the wrapper would be installed under lib/. Now the binary is put under lib/bin/, leaving lib/ for the wrapper.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk22
1 files changed, 6 insertions, 16 deletions
diff --git a/ghc.mk b/ghc.mk
index 2118202e11..5df8e553c6 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -796,7 +796,7 @@ TAGS: TAGS_compiler
# Installation
install: install_libs install_packages install_libexecs \
- install_libexec_scripts install_bins install_topdirs
+ install_bins install_topdirs
ifeq "$(HADDOCK_DOCS)" "YES"
install: install_docs
endif
@@ -826,27 +826,17 @@ install_libs: $(INSTALL_LIBS)
esac; \
done
-install_libexec_scripts: $(INSTALL_LIBEXEC_SCRIPTS)
-ifeq "$(INSTALL_LIBEXEC_SCRIPTS)" ""
- @:
-else
- $(call INSTALL_DIR,"$(DESTDIR)$(ghclibexecdir)")
- for i in $(INSTALL_LIBEXEC_SCRIPTS); do \
- $(call INSTALL_SCRIPT,$(INSTALL_OPTS),$$i,"$(DESTDIR)$(ghclibexecdir)"); \
- done
-endif
-
install_libexecs: $(INSTALL_LIBEXECS)
ifeq "$(INSTALL_LIBEXECS)" ""
@:
else
- $(call INSTALL_DIR,"$(DESTDIR)$(ghclibexecdir)")
+ $(call INSTALL_DIR,"$(DESTDIR)$(ghclibexecdir)/bin")
for i in $(INSTALL_LIBEXECS); do \
- $(call INSTALL_PROGRAM,$(INSTALL_BIN_OPTS),$$i,"$(DESTDIR)$(ghclibexecdir)"); \
+ $(call INSTALL_PROGRAM,$(INSTALL_BIN_OPTS),$$i,"$(DESTDIR)$(ghclibexecdir)/bin"); \
done
# We rename ghc-stage2, so that the right program name is used in error
# messages etc.
- "$(MV)" "$(DESTDIR)$(ghclibexecdir)/ghc-stage$(INSTALL_GHC_STAGE)" "$(DESTDIR)$(ghclibexecdir)/ghc"
+ "$(MV)" "$(DESTDIR)$(ghclibexecdir)/bin/ghc-stage$(INSTALL_GHC_STAGE)" "$(DESTDIR)$(ghclibexecdir)/bin/ghc"
endif
install_topdirs: $(INSTALL_TOPDIRS)
@@ -884,8 +874,8 @@ 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
-INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(ghclibexecdir)/ghc-pkg
+INSTALLED_GHC_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc
+INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc-pkg
else
INSTALLED_GHC_REAL=$(DESTDIR)$(bindir)/ghc.exe
INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(bindir)/ghc-pkg.exe