X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fdriver%2FMakefile;h=3a87ab43c504f2d30569176e29305e17e092e069;hb=45252b35151fc55aa19fb6770df5ed8267639083;hp=9244d1c13309e66807dc0b1195e051033a8e2077;hpb=27b4d2d763ce650fd5e5f9303d1f0e0c90a1cfcb;p=ghc-hetmet.git diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index 9244d1c..3a87ab4 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -1,62 +1,28 @@ -#----------------------------------------------------------------------------- -# $Id: Makefile,v 1.57 2001/03/26 16:53:35 simonmar Exp $ +# -----------------------------------------------------------------------------= +# $Id: Makefile,v 1.76 2005/03/02 09:49:11 simonmar Exp $ +# +# (c) The University of Glasgow 2002 # TOP=.. -CURRENT_DIR=ghc/driver include $(TOP)/mk/boilerplate.mk -# hack for ghci-inplace script, see below -INSTALLING=1 - -ifeq "$(INSTALLING)" "1" SUBDIRS = mangler split ghc ghci -endif - -# ----------------------------------------------------------------------------- -# package configuration files... - -PKGCONF_OPTS = "$(TARGETPLATFORM)" \ - "$(CURRENT_DIR)" \ - "$(HaveLibGmp)" \ - "$(LibsReadline)" \ - "$(libdir)" \ - "$(GHC_LIB_DIR)" \ - "$(GHC_RUNTIME_DIR)" \ - "$(GHC_UTILS_DIR)" \ - "$(GHC_INCLUDE_DIR)" \ - "$(FPTOOLS_TOP_ABS)" - -ghc_407_at_least = $(shell expr "$(GhcMinVersion)" \>= 7) -ifeq "$(ghc_407_at_least)" "1" -ifneq "$(mingw32_TARGET_OS)" "1" -SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package posix -package text -else -SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package text -endif -else -SRC_HC_OPTS += -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib misc -endif - -SRC_HC_OPTS += -DWANT_PRETTY - -all :: package.conf package.conf.inplace - -HS_OBJS = Package.o PackageSrc.o Utils.o -HS_PROG = pkgconf - -package.conf.inplace : $(HS_PROG) - ./$(HS_PROG) in-place $(PKGCONF_OPTS) >$@ -package.conf : pkgconf - ./$(HS_PROG) install $(PKGCONF_OPTS) >$@ +boot all :: package.conf.inplace package.conf -Package.o : ../utils/ghc-pkg/Package.hs +package.conf.inplace : + echo "[]" > $@ -INSTALL_DATAS += package.conf +package.conf : + echo "[]" > $@ -CLEAN_FILES += pkgconf package.conf.inplace package.conf +override datadir = $(libdir) +INSTALL_DATAS += package.conf ghc-usage.txt ghci-usage.txt -# ----------------------------------------------------------------------------- +# 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* stamp-pkg-conf* include $(TOP)/mk/target.mk