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:
--- /dev/null
+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