From: simonmar Date: Tue, 30 Apr 2002 14:40:56 +0000 (+0000) Subject: [project @ 2002-04-30 14:40:56 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~2082 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0c0d05f46ed42dceac771999adb769f12c10cc39;p=ghc-hetmet.git [project @ 2002-04-30 14:40:56 by simonmar] Make this work with 'make -j' --- diff --git a/ghc/utils/ghc-pkg/Makefile b/ghc/utils/ghc-pkg/Makefile index 7c416f7..7c9cd50 100644 --- a/ghc/utils/ghc-pkg/Makefile +++ b/ghc/utils/ghc-pkg/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.15 2002/02/12 16:55:22 simonmar Exp $ +# $Id: Makefile,v 1.16 2002/04/30 14:40:56 simonmar Exp $ TOP=../.. include $(TOP)/mk/boilerplate.mk @@ -7,11 +7,6 @@ include $(TOP)/mk/boilerplate.mk # hack for ghci-inplace script, see below INSTALLING=1 -# ghc-pkg is needed to boot in ghc/rts and library dirs -ifneq "$(BootingFromHc)" "YES" -boot :: depend all -endif - # ----------------------------------------------------------------------------- # ghc-pkg.bin @@ -70,8 +65,18 @@ endif # don't recurse on 'make install' # ifeq "$(INSTALLING)" "1" -all clean distclean maintainer-clean :: +all :: $(HS_PROG) + $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@ +clean distclean maintainer-clean :: $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@ endif +# ghc-pkg is needed to boot in ghc/rts and library dirs +# Do a recursive 'make all' after generating dependencies, because this +# will work with 'make -j'. +ifneq "$(BootingFromHc)" "YES" +boot :: depend + $(MAKE) all +endif + include $(TOP)/mk/target.mk