help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to enforce ordering on a set of targets?


From: Robert P. J. Day
Subject: Re: how to enforce ordering on a set of targets?
Date: Wed, 26 Jan 2005 17:59:41 -0500 (EST)

On Wed, 26 Jan 2005, Paul D. Smith wrote:

> %% "Robert P. J. Day" <address@hidden> 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

i knew i was going to be too brief and leave out salient info.  give
me a bit to write this up more carefully.

rday




reply via email to

[Prev in Thread] Current Thread [Next in Thread]