X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=driver%2FMakefile;h=3c79335a49065a8f2871014c1058c932057eecf8;hp=cf842e47c1c890a73e5c63851d7e7f8551a38949;hb=e10a75279987aa31492f5ead289a6646d69b3a23;hpb=eed437cdefb952e6c70e58012b23d436e74710af diff --git a/driver/Makefile b/driver/Makefile index cf842e4..3c79335 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 ghci - -INPLACE_DATA_DIR = $(FPTOOLS_TOP_ABS)/inplace-datadir -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 -e $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF) - touch $(INPLACE_FILE) - -override datadir = $(libdir) -INSTALL_DATAS += package.conf 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 packages. -CLEAN_FILES += package.conf* stamp-pkg-conf* - -binary-dist: - $(INSTALL_DIR) $(BIN_DIST_DIR)/driver - $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/driver - $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/driver - set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist; done - -include $(TOP)/mk/target.mk +dir = driver +TOP = .. +include $(TOP)/mk/sub-makefile.mk