summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-19 15:30:10 +0000
committerIan Lynagh <igloo@earth.li>2008-09-19 15:30:10 +0000
commitf2853b4bb7b07f1ad7774c60ec9c5ed7ccfca772 (patch)
tree41ed67375972b897ca6a4b7ace0a66860054521d /driver
parentc3062251034f54944061e816ed018b0b2db1b849 (diff)
downloadhaskell-f2853b4bb7b07f1ad7774c60ec9c5ed7ccfca772.tar.gz
Create runhaskell as well as runghc
Diffstat (limited to 'driver')
-rw-r--r--driver/Makefile2
-rw-r--r--driver/runhaskell/Makefile14
2 files changed, 15 insertions, 1 deletions
diff --git a/driver/Makefile b/driver/Makefile
index 0eb10c692c..5207214068 100644
--- a/driver/Makefile
+++ b/driver/Makefile
@@ -7,7 +7,7 @@
TOP=..
include $(TOP)/mk/boilerplate.mk
-SUBDIRS = mangler split ghc ghci
+SUBDIRS = mangler split ghc ghci runhaskell
INPLACE_PKG_CONF = $(INPLACE_DATA_DIR)/package.conf
# Used to signal that we are inplace, as opposed to installed:
diff --git a/driver/runhaskell/Makefile b/driver/runhaskell/Makefile
new file mode 100644
index 0000000000..585e8bcc8d
--- /dev/null
+++ b/driver/runhaskell/Makefile
@@ -0,0 +1,14 @@
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+install::
+ cp $(DESTDIR)$(bindir)/runghc.exe $(DESTDIR)$(bindir)/runhaskell.exe
+else
+install::
+ ln -s runghc $(DESTDIR)$(bindir)/runhaskell
+endif
+
+include $(TOP)/mk/bindist.mk
+
+include $(TOP)/mk/target.mk