[project @ 2003-11-06 10:31:55 by simonmar]
[ghc-hetmet.git] / ghc / driver / Makefile
index 3306080..3e4f6cf 100644 (file)
@@ -1,34 +1,28 @@
-#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.2 1996/11/21 16:47:27 simonm Exp $
+# -----------------------------------------------------------------------------=
+# $Id: Makefile,v 1.75 2003/11/06 10:31:55 simonmar Exp $
+#
+# (c) The University of Glasgow 2002
+#
 
-TOP=../..
-CURRENT_DIR=ghc/driver
-UnlitSuffixRules = YES
-include $(TOP)/ghc/mk/ghc.mk
+TOP=..
+include $(TOP)/mk/boilerplate.mk
 
-DYN_LOADABLE_BITS = \
-       ghc-asm.prl \
-       ghc-recomp.prl \
-       ghc-iface.prl \
-       ghc-consist.prl \
-       ghc-split.prl
+SUBDIRS = mangler split ghc ghci
 
-PROG   = ghc
-SRC    = ghc.prl
-INTERP = $(PERL)
-DESTDIR        = $(INSTBINDIR_GHC)
-INSTALLED_NAME = $(GHC_DRIVER_INST_NAME)
+boot all :: package.conf.inplace package.conf
 
-all :: $(DYN_LOADABLE_BITS)
+package.conf.inplace :
+       echo "[]" > $@
 
-install :: $(DYN_LOADABLE_BITS)
-       $(INSTALL) $(INSTDATAFLAGS) $(DYN_LOADABLE_BITS) $(INSTLIBDIR_GHC)
+package.conf :
+       echo "[]" > $@
 
-clean::
-       $(RM) ghc.prl
-       $(RM) $(DYN_LOADABLE_BITS)
+override datadir = $(libdir)
+INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt
 
-# DYN_LOADABLE_LPRLS = $(DYN_LOADABLE_BITS:.prl=.lprl)
-# PerlTagsTarget( ghc.lprl $(DYN_LOADABLE_LPRLS) )
+# Since cleaning effectively uninstalls all the packages, we must 
+# remove the stamp files that the build system uses to avoid unnecessarily
+# re-installing packages.
+CLEAN_FILES += package.conf.inplace package.conf stamp-pkg-conf*
 
-include $(TOP)/mk/script.mk
+include $(TOP)/mk/target.mk