Create runhaskell as well as runghc
[ghc-hetmet.git] / driver / runhaskell / Makefile
diff --git a/driver/runhaskell/Makefile b/driver/runhaskell/Makefile
new file mode 100644 (file)
index 0000000..585e8bc
--- /dev/null
@@ -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