X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdriver%2FMakefile;h=a6faed482ce696618c3820f097e4dc6cb3cc3072;hb=f6c31c0fbf77b1c46c508fa56214361671ccfd05;hp=330608071f3718d9135d4275d8414ba798eb7c40;hpb=02b60157852c1bf3c371b47c33d83814a05153bc;p=ghc-hetmet.git diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index 3306080..a6faed4 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -1,34 +1,28 @@ -#----------------------------------------------------------------------------- -# $Id: Makefile,v 1.2 1996/11/21 16:47:27 simonm Exp $ +# -----------------------------------------------------------------------------= +# $Id: Makefile,v 1.74 2002/09/25 10:32:34 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 -# 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