diff options
author | Ian Lynagh <igloo@earth.li> | 2009-02-17 21:50:48 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-02-17 21:50:48 +0000 |
commit | 2719d1e57ba9524b3acdb2b270508704f6306137 (patch) | |
tree | 276dff242e4e74e5ec2543b454590448e8ffbf5f /driver/ghci | |
parent | 0bc0144c2b982da47af56037bd2e3eac84e9560e (diff) | |
download | haskell-2719d1e57ba9524b3acdb2b270508704f6306137.tar.gz |
Make versioned ghc and ghci programs on Windows; fixes trac #2827
Diffstat (limited to 'driver/ghci')
-rw-r--r-- | driver/ghci/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/driver/ghci/Makefile b/driver/ghci/Makefile index 54bd246623..8bb25383ef 100644 --- a/driver/ghci/Makefile +++ b/driver/ghci/Makefile @@ -10,19 +10,27 @@ include $(TOP)/mk/boilerplate.mk ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" C_PROG = ghci +C_PROG_VERSIONED = $(C_PROG)-$(ProjectVersion) C_OBJS += ghci.res + +all :: $(C_PROG_VERSIONED) +$(C_PROG_VERSIONED) : $(C_PROG) + cp $< $@ else C_SRCS= endif ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -INSTALL_PROGS += $(C_PROG) +INSTALL_PROGS += $(C_PROG) $(C_PROG_VERSIONED) GHCII_SCRIPT=$(DESTDIR)$(bindir)/ghcii.sh +GHCII_SCRIPT_VERSIONED = $(DESTDIR)$(bindir)/ghcii-$(ProjectVersion).sh install:: $(RM) -f $(GHCII_SCRIPT) echo "#!$(SHELL)" >> $(GHCII_SCRIPT) echo 'exec "$$0"/../ghc --interactive $${1+"$$@"}' >> $(GHCII_SCRIPT) chmod +x $(GHCII_SCRIPT) + cp $(GHCII_SCRIPT) $(GHCII_SCRIPT_VERSIONED) + chmod +x $(GHCII_SCRIPT_VERSIONED) else LINK = ghci LINK_TARGET = $(LINK)-$(ProjectVersion) |