X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdriver%2FMakefile;h=3e4f6cf63ec6d7a1f2c23cd5bd52a0574cc42c59;hb=5cb4bb13a817c44cdc4369c7f82949d9490d69a0;hp=79f6307d2b30ae87b22e2b20a6d0f0a1d4a9eed7;hpb=a169003f1e0d92cb1e77abbad1cac52aed442a58;p=ghc-hetmet.git diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index 79f6307..3e4f6cf 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -1,63 +1,28 @@ -#----------------------------------------------------------------------------- -# $Id: Makefile,v 1.59 2001/03/31 10:28:42 panne 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 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 +boot all :: package.conf.inplace package.conf -all :: package.conf package.conf.inplace +package.conf.inplace : + echo "[]" > $@ -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) >$@ - -Package.o : ../utils/ghc-pkg/Package.hs +package.conf : + echo "[]" > $@ override datadir = $(libdir) -INSTALL_DATAS += package.conf ghc-usage.txt - -CLEAN_FILES += pkgconf package.conf.inplace package.conf +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.inplace package.conf stamp-pkg-conf* include $(TOP)/mk/target.mk