Fix bindist creation
[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
11
12 boot all :: package.conf.inplace package.conf
13
14 package.conf.inplace :
15         echo "[]" > $@
16
17 package.conf :
18         echo "[]" > $@
19
20 override datadir = $(libdir)
21 INSTALL_DATAS += package.conf 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 packages.
26 CLEAN_FILES += package.conf* stamp-pkg-conf*
27
28 binary-dist:
29         $(INSTALL_DIR)                   $(BIN_DIST_DIR)/driver
30         $(INSTALL_DATA) Makefile         $(BIN_DIST_DIR)/driver
31         $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/driver
32         set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist; done
33
34 include $(TOP)/mk/target.mk