Create runhaskell as well as runghc
[ghc-hetmet.git] / driver / Makefile
1 # -----------------------------------------------------------------------------=
2 # $Id: Makefile,v 1.76 2005/03/02 09:49:11 simonmar Exp $
3 #
4 # (c) The University of Glasgow 2002
5 #
6
7 TOP=..
8 include $(TOP)/mk/boilerplate.mk
9
10 SUBDIRS = mangler split ghc ghci runhaskell
11
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
15
16 boot all ::
17         $(MKDIRHIER) $(INPLACE_DATA_DIR)
18         test -f $(INPLACE_PKG_CONF) || echo "[]" > $(INPLACE_PKG_CONF)
19         touch $(INPLACE_FILE)
20
21 INSTALL_DATAS += ghc-usage.txt ghci-usage.txt
22
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
27
28 binary-dist:
29 ifeq "$(WHERE_AM_I)" ""
30         echo "I don't know where I am" >&2
31         exit 1
32 endif
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
35
36 include $(TOP)/mk/target.mk