X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2Fghci%2FMakefile;h=9935c9cef8866fc275225a2d3170574c88b1b7c3;hb=68b76e0e49d4d95e1bfe9343697e2abc99470791;hp=7c67ac546c08c80dfc63ca5e86000b2b7b763710;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/driver/ghci/Makefile b/driver/ghci/Makefile index 7c67ac5..9935c9c 100644 --- a/driver/ghci/Makefile +++ b/driver/ghci/Makefile @@ -1,69 +1,15 @@ -#----------------------------------------------------------------------------- -# $Id: Makefile,v 1.11 2005/05/05 00:58:38 sof Exp $ -# - -TOP=../.. -include $(TOP)/mk/boilerplate.mk - -# hack for ghci-inplace script, see below -INSTALLING=1 - # ----------------------------------------------------------------------------- -# ghci script - -ifeq "$(INSTALLING)" "1" -ifeq "$(BIN_DIST)" "1" -GHCBIN=$$\"\"libexecdir/ghc-$(ProjectVersion) -GHCLIB=$$\"\"libdir -else -GHCBIN=$(libexecdir)/ghc-$(ProjectVersion) -GHCLIB=$(libdir) -endif # BIN_DIST -else -GHCBIN=$(FPTOOLS_TOP_ABS)/$(GHC_COMPILER_DIR_REL)/ghc-$(ProjectVersion) -GHCLIB=$(FPTOOLS_TOP_ABS) -endif - -INSTALLED_SCRIPT_PROG = ghci-$(ProjectVersion) -INPLACE_SCRIPT_PROG = ghci-inplace - -ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -C_PROG = ghci -C_OBJS += ghci.res -else -C_SRCS= -endif - -SCRIPT_OBJS = ghci.sh -INTERP = $(SHELL) -SCRIPT_SUBST_VARS = GHCBIN TOPDIROPT -ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -INSTALL_SCRIPTS += $(SCRIPT_PROG) -else -INSTALL_SCRIPTS += ghcii.sh -INSTALL_PROGS += $(C_PROG) -endif -TOPDIROPT = -B$(GHCLIB) - -ifeq "$(INSTALLING)" "1" -SCRIPT_PROG = $(INSTALLED_SCRIPT_PROG) -ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -LINK = ghci -endif -else -SCRIPT_PROG = $(INPLACE_SCRIPT_PROG) -endif - -# don't recurse on 'make install' # -ifeq "$(INSTALLING)" "1" -all clean distclean maintainer-clean :: - $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@ -endif - -ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -ghci.res : ghci.rc ghci.ico - windres -o ghci.res -i ghci.rc -O coff -endif +# (c) 2009 The University of Glasgow +# +# This file is part of the GHC build system. +# +# To understand how the build system works and how to modify it, see +# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture +# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying +# +# ----------------------------------------------------------------------------- -include $(TOP)/mk/target.mk +dir = driver/ghci +TOP = ../.. +include $(TOP)/mk/sub-makefile.mk