[Top][All Lists]
[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: |
Thu, 27 Jan 2005 06:18:33 -0500 (EST) |
On Wed, 26 Jan 2005, Paul D. Smith wrote:
> %% "Robert P. J. Day" <address@hidden> writes:
>
> rpjd> and i can't add
>
> rpjd> ${SUBDIRS}: pre-populate
>
> rpjd> since that dependency should *only* take effect when i'm
> rpjd> invoking the makefile with the "populate" target, and no others.
>
> Hm. Well, an answer to what your asking for would be:
>
> POPULATE_PREREQ :=
> ifneq ($(filter populate,$(MAKECMDGOALS)),)
> POPULATE_PREREQ := pre-populate
> endif
>
> ${SUBDIRS}: ${POPULATE_PREREQ}
>
> Or, of course, you could add an extra level of recursion, like this:
>
> populate: pre-populate
> $(MAKE) ${SUBDIRS}
just an observation that this second suggestion won't work since my
makefile takes advantage of getting the phony action target ("clean",
"configure", etc.) from ${MAKECMDGOALS}, and invoking another make at
this point would overwrite those values.
anyway, i have enough ideas to make this work, one way or another.
thanks for the suggestions.
rday
- how to enforce ordering on a set of targets?, Robert P. J. Day, 2005/01/26
- Re: how to enforce ordering on a set of targets?, Noel Yap, 2005/01/26
- Re: how to enforce ordering on a set of targets?, Paul D. Smith, 2005/01/26
- Re: how to enforce ordering on a set of targets?, Robert P. J. Day, 2005/01/26
- Re: how to enforce ordering on a set of targets?, Robert P. J. Day, 2005/01/26
- Re: how to enforce ordering on a set of targets?, Noel Yap, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Paul D. Smith, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Noel Yap, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Paul D. Smith, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Noel Yap, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Paul D. Smith, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Robert P. J. Day, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Paul D. Smith, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Robert P. J. Day, 2005/01/27
- Re: how to enforce ordering on a set of targets?, Noel Yap, 2005/01/27