summaryrefslogtreecommitdiff
path: root/driver/ghc
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-12 11:36:19 +0000
committerIan Lynagh <igloo@earth.li>2008-09-12 11:36:19 +0000
commitf559be1fdb74c5e8e1b76cb5acf5553ff4de2354 (patch)
tree0dd574fb891456b862b07a2d7fff49e6e1df2aad /driver/ghc
parentddd3c15b38580dcdc30fcf90ec0eadf8ae013639 (diff)
downloadhaskell-f559be1fdb74c5e8e1b76cb5acf5553ff4de2354.tar.gz
Reinstate the driver/ghc directory, to create a versioned GHC program
e.g. $(bindir)/ghc-6.9.20080911
Diffstat (limited to 'driver/ghc')
-rw-r--r--driver/ghc/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/driver/ghc/Makefile b/driver/ghc/Makefile
new file mode 100644
index 0000000000..4eeb3f96ca
--- /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