1 # -----------------------------------------------------------------------------=
2 # $Id: Makefile,v 1.76 2005/03/02 09:49:11 simonmar Exp $
4 # (c) The University of Glasgow 2002
8 include $(TOP)/mk/boilerplate.mk
10 SUBDIRS = mangler split ghci
12 INPLACE_DATA_DIR = $(FPTOOLS_TOP_ABS)/inplace-datadir
13 INPLACE_PKG_CONF = $(INPLACE_DATA_DIR)/package.conf
14 # Used to signal that we are inplace, as opposed to installed:
15 INPLACE_FILE = $(INPLACE_DATA_DIR)/inplace
18 $(MKDIRHIER) $(INPLACE_DATA_DIR)
19 test -e $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF)
22 INSTALL_DATAS += ghc-usage.txt ghci-usage.txt
24 # Since cleaning effectively uninstalls all the packages, we must
25 # remove the stamp files that the build system uses to avoid unnecessarily
26 # re-installing the RTS
27 CLEAN_FILES += stamp-pkg-conf-rts
30 for FILE in Makefile $(INSTALL_DATAS); do echo $(WHERE_AM_I)/$$FILE >> $(BIN_DIST_LIST); done
31 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist WHERE_AM_I=$(WHERE_AM_I)/$$d; done
33 include $(TOP)/mk/target.mk