%% "Robert P. J. Day" <[EMAIL PROTECTED]> writes:

  rpjd> what's the proper way to enforce an ordering on a set of targets
  rpjd> i have in the following context?  to make a long story short
  rpjd> (but hopefully not so short that i leave out crucial info), i
  rpjd> have the following in a makefile:

  rpjd>   .PHONY: populate populate_base
  rpjd>   populate: populate_base ${SUBDIRS}

  rpjd> where, when i call this makefile with the target "populate",
  rpjd> it's critical that the "populate_base" target there is processed
  rpjd> first, *after* which all of the subdirectory targets can be done
  rpjd> in parallel.

If you want populate_base to be run before the subdirs, then they should
depend on it, like this:

    ${SUBDIRS}: populate_base


Now no target in SUBDIRS will be started until populate_base is complete.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to