summaryrefslogtreecommitdiff
path: root/driver/ghc
diff options
context:
space:
mode:
Diffstat (limited to 'driver/ghc')
-rw-r--r--driver/ghc/Makefile22
1 files changed, 2 insertions, 20 deletions
diff --git a/driver/ghc/Makefile b/driver/ghc/Makefile
index dcde9948c0..f01f986f25 100644
--- a/driver/ghc/Makefile
+++ b/driver/ghc/Makefile
@@ -1,21 +1,3 @@
+dir=driver/ghc
TOP=../..
-include $(TOP)/mk/boilerplate.mk
-
-ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
-C_PROG = ghc-$(ProjectVersion)$(exeext)
-INSTALL_PROGS += $(C_PROG)
-else
-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
+include $(TOP)/mk/sub-makefile.mk