projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make versioned ghc and ghci programs on Windows; fixes trac #2827
[ghc-hetmet.git]
/
driver
/
ghc
/
Makefile
diff --git
a/driver/ghc/Makefile
b/driver/ghc/Makefile
index
4eeb3f9
..
55167ec
100644
(file)
--- a/
driver/ghc/Makefile
+++ b/
driver/ghc/Makefile
@@
-1,7
+1,10
@@
TOP=../..
include $(TOP)/mk/boilerplate.mk
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)
SCRIPT_DIR = $(DESTDIR)$(bindir)
SCRIPT_BASE = ghc
SCRIPT_VERSIONED_BASE = $(SCRIPT_BASE)-$(ProjectVersion)