X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fghc-pkg%2FMakefile;h=7c9cd50c851a36e07d9e826e106d2485ef7a220b;hb=0c0d05f46ed42dceac771999adb769f12c10cc39;hp=7c416f779a571168359552244b65c929b8fea5ca;hpb=bd61bf060dc4f0089e8409e1b6a9628651a506c2;p=ghc-hetmet.git 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