diff options
author | Ian Lynagh <igloo@earth.li> | 2009-07-05 20:40:41 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-07-05 20:40:41 +0000 |
commit | 90d1a7615977f2040e82661704c82b49a9b11ea5 (patch) | |
tree | 1d872993d5179cf7738103ba6ad8d2d35a537faa /driver | |
parent | dbdac3eb37da869f40adfa756616240ca293ed1c (diff) | |
download | haskell-90d1a7615977f2040e82661704c82b49a9b11ea5.tar.gz |
Update driver/Makefile for the new build system
Diffstat (limited to 'driver')
-rw-r--r-- | driver/Makefile | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/driver/Makefile b/driver/Makefile index 016eab2f44..3c79335a49 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -1,36 +1,15 @@ -# -----------------------------------------------------------------------------= -# $Id: Makefile,v 1.76 2005/03/02 09:49:11 simonmar Exp $ +# ----------------------------------------------------------------------------- # -# (c) The University of Glasgow 2002 +# (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 +# +# ----------------------------------------------------------------------------- -TOP=.. -include $(TOP)/mk/boilerplate.mk - -SUBDIRS = mangler split ghc ghc-pkg ghci runhaskell - -INPLACE_PKG_CONF = $(INPLACE_DATA_DIR)/package.conf -# Used to signal that we are inplace, as opposed to installed: -INPLACE_FILE = $(INPLACE_DATA_DIR)/inplace - -boot all :: - $(MKDIRHIER) $(INPLACE_DATA_DIR) - test -f $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF) - touch $(INPLACE_FILE) - -INSTALL_DATAS += ghc-usage.txt ghci-usage.txt - -# Since cleaning effectively uninstalls all the packages, we must -# remove the stamp files that the build system uses to avoid unnecessarily -# re-installing the RTS -CLEAN_FILES += stamp-pkg-conf-rts - -binary-dist: -ifeq "$(WHERE_AM_I)" "" - echo "I don't know where I am" >&2 - exit 1 -endif - for FILE in Makefile $(INSTALL_DATAS); do echo $(WHERE_AM_I)/$$FILE >> $(BIN_DIST_LIST); done - set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist WHERE_AM_I=$(WHERE_AM_I)/$$d; done - -include $(TOP)/mk/target.mk +dir = driver +TOP = .. +include $(TOP)/mk/sub-makefile.mk |