From f559be1fdb74c5e8e1b76cb5acf5553ff4de2354 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 12 Sep 2008 11:36:19 +0000 Subject: [PATCH] Reinstate the driver/ghc directory, to create a versioned GHC program e.g. $(bindir)/ghc-6.9.20080911 --- Makefile | 2 +- driver/Makefile | 2 +- driver/ghc/Makefile | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 driver/ghc/Makefile diff --git a/Makefile b/Makefile index b42b21c..d73c304 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ else SUBDIRS_BUILD = includes utils driver docs compiler libraries/Cabal/doc endif -SUBDIRS = gmp libffi includes utils driver docs rts compiler ghc libraries libraries/Cabal/doc +SUBDIRS = gmp libffi includes utils docs rts compiler ghc driver libraries libraries/Cabal/doc check-all: check-packages diff --git a/driver/Makefile b/driver/Makefile index 7e87b89..0eb10c6 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -7,7 +7,7 @@ TOP=.. include $(TOP)/mk/boilerplate.mk -SUBDIRS = mangler split ghci +SUBDIRS = mangler split ghc ghci INPLACE_PKG_CONF = $(INPLACE_DATA_DIR)/package.conf # Used to signal that we are inplace, as opposed to installed: diff --git a/driver/ghc/Makefile b/driver/ghc/Makefile new file mode 100644 index 0000000..4eeb3f9 --- /dev/null +++ b/driver/ghc/Makefile @@ -0,0 +1,18 @@ +TOP=../.. +include $(TOP)/mk/boilerplate.mk + +ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +SCRIPT_DIR = $(DESTDIR)$(bindir) +SCRIPT_BASE = ghc +SCRIPT_VERSIONED_BASE = $(SCRIPT_BASE)-$(ProjectVersion) +SCRIPT = $(SCRIPT_DIR)/$(SCRIPT_BASE) +SCRIPT_VERSIONED = $(SCRIPT_DIR)/$(SCRIPT_VERSIONED_BASE) + +install:: + mv $(SCRIPT) $(SCRIPT_VERSIONED) + ln -s $(SCRIPT_VERSIONED_BASE) $(SCRIPT) +endif + +include $(TOP)/mk/bindist.mk + +include $(TOP)/mk/target.mk -- 1.7.10.4