X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2FMakefile;h=3fcb4be55652e0695bdce8a0807bbde36e700697;hb=9221fb31c4207700e9aaf1512e0f73afe487674f;hp=cf842e47c1c890a73e5c63851d7e7f8551a38949;hpb=eed437cdefb952e6c70e58012b23d436e74710af;p=ghc-hetmet.git diff --git a/driver/Makefile b/driver/Makefile index cf842e4..3fcb4be 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -7,9 +7,8 @@ TOP=.. include $(TOP)/mk/boilerplate.mk -SUBDIRS = mangler split ghc ghci +SUBDIRS = mangler split 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 @@ -19,18 +18,19 @@ boot all :: 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 +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 packages. -CLEAN_FILES += package.conf* stamp-pkg-conf* +# re-installing the RTS +CLEAN_FILES += stamp-pkg-conf-rts 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 +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