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 ghc ghci
12 INPLACE_PKG_CONF = $(INPLACE_DATA_DIR)/package.conf
13 # Used to signal that we are inplace, as opposed to installed:
14 INPLACE_FILE = $(INPLACE_DATA_DIR)/inplace
17 $(MKDIRHIER) $(INPLACE_DATA_DIR)
18 test -f $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF)
21 INSTALL_DATAS += ghc-usage.txt ghci-usage.txt
23 # Since cleaning effectively uninstalls all the packages, we must
24 # remove the stamp files that the build system uses to avoid unnecessarily
25 # re-installing the RTS
26 CLEAN_FILES += stamp-pkg-conf-rts
29 ifeq "$(WHERE_AM_I)" ""
30 echo "I don't know where I am" >&2
33 for FILE in Makefile $(INSTALL_DATAS); do echo $(WHERE_AM_I)/$$FILE >> $(BIN_DIST_LIST); done
34 set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist WHERE_AM_I=$(WHERE_AM_I)/$$d; done
36 include $(TOP)/mk/target.mk