X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2FMakefile;h=7a07cbdd3ab828e23d3599de4532c334151d5242;hb=6d0dd9aa562a9f96bf875b7260675609e1171b66;hp=3a87ab43c504f2d30569176e29305e17e092e069;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/driver/Makefile b/driver/Makefile index 3a87ab4..7a07cbd 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -7,17 +7,19 @@ TOP=.. include $(TOP)/mk/boilerplate.mk -SUBDIRS = mangler split ghc ghci +SUBDIRS = mangler split ghci -boot all :: package.conf.inplace package.conf +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 -package.conf.inplace : - echo "[]" > $@ +boot all :: + $(MKDIRHIER) $(INPLACE_DATA_DIR) + test -e $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF) + echo "[]" > package.conf + touch $(INPLACE_FILE) -package.conf : - echo "[]" > $@ - -override datadir = $(libdir) INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt # Since cleaning effectively uninstalls all the packages, we must @@ -25,4 +27,8 @@ INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt # re-installing packages. CLEAN_FILES += package.conf* stamp-pkg-conf* +binary-dist: + 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