Make versioned ghc and ghci programs on Windows; fixes trac #2827
[ghc-hetmet.git] / driver / ghc / Makefile
index 4eeb3f9..55167ec 100644 (file)
@@ -1,7 +1,10 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
-ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+C_PROG = ghc-$(ProjectVersion)
+INSTALL_PROGS += $(C_PROG)
+else
 SCRIPT_DIR = $(DESTDIR)$(bindir)
 SCRIPT_BASE = ghc
 SCRIPT_VERSIONED_BASE = $(SCRIPT_BASE)-$(ProjectVersion)