X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2FMakefile;h=e81b1ea1fad2e23a54fb1d5616dbb963d4f95eb5;hb=99daef874ab8f0c3b1d1ec1888d6bb6d368a4b79;hp=a8352090c163384452d5e8ffaaab1343e5ae9f46;hpb=79b5a2cb4b9ed5fe41a05fa2ec98bd1f83971daf;p=ghc-hetmet.git diff --git a/driver/Makefile b/driver/Makefile index a835209..e81b1ea 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -9,15 +9,17 @@ include $(TOP)/mk/boilerplate.mk SUBDIRS = mangler split ghc 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