summaryrefslogtreecommitdiff
path: root/utils/hsc2hs
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-10-25 08:42:22 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-10-25 08:42:22 +0000
commitf6e429f8f5a533d699a69ffc733a56be5ddff5a9 (patch)
treeb945307c5ceb491d298ada5b5807f2d298aa97ad /utils/hsc2hs
parent7895455f8dc327c6b447f9287d6e76ddcd253183 (diff)
downloadhaskell-f6e429f8f5a533d699a69ffc733a56be5ddff5a9.tar.gz
default to installing runhaskell and hsc2hs again, but provide knobs to turn them off
Diffstat (limited to 'utils/hsc2hs')
-rw-r--r--utils/hsc2hs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/hsc2hs/Makefile b/utils/hsc2hs/Makefile
index b9bcaf1c40..70d027f1bb 100644
--- a/utils/hsc2hs/Makefile
+++ b/utils/hsc2hs/Makefile
@@ -54,7 +54,7 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
INSTALL_PROGS += $(HS_PROG)
else
INSTALL_LIBEXECS += $(HS_PROG)
-LINK = hsc2hs
+LINK = hsc2hs-ghc
LINK_TARGET = $(LINK)-$(ProjectVersion)
INSTALLED_SCRIPT=$(DESTDIR)$(bindir)/$(LINK_TARGET)
install::
@@ -66,6 +66,11 @@ install::
echo "HSC2HS_EXTRA=" >> $(INSTALLED_SCRIPT)
cat hsc2hs.sh >> $(INSTALLED_SCRIPT)
$(EXECUTABLE_FILE) $(INSTALLED_SCRIPT)
+
+ifneq "$(NO_INSTALL_HSC2HS)" "YES"
+install::
+ $(CP) $(INSTALLED_SCRIPT) $(DESTDIR)/$(bindir)/hsc2hs
+endif
endif
# -----------------------------------------------------------------------------