X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=driver%2FMakefile;fp=driver%2FMakefile;h=cf842e47c1c890a73e5c63851d7e7f8551a38949;hb=eed437cdefb952e6c70e58012b23d436e74710af;hp=a8352090c163384452d5e8ffaaab1343e5ae9f46;hpb=249bcf1f34e240a39abbcbb29bd6b97ddece421f;p=ghc-hetmet.git diff --git a/driver/Makefile b/driver/Makefile index a835209..cf842e4 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -9,13 +9,15 @@ include $(TOP)/mk/boilerplate.mk SUBDIRS = mangler split ghc ghci -boot all :: package.conf.inplace package.conf - -package.conf.inplace : - echo "[]" > $@ - -package.conf : - echo "[]" > $@ +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