help-make
[Top][All Lists]
Advanced

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

Re: MAKEFLAGS (Was: forcing a rule)


From: Noel Yap
Subject: Re: MAKEFLAGS (Was: forcing a rule)
Date: Wed, 14 Apr 2004 12:40:44 -0400

Unfortunately, I have personally never used this technique but a colleague of 
mine has so I know, at least for his purposes, the technique works.  In case 
you haven't read the paper, yet, the gist of the technique is:

1. If this is the primary make, cd into the build directory and re-invoke make 
/with the original targets/.
2. Otherwise, perform the build as usual.

Have you read the paper?  If so, which part is unclear?

HTH,
Noel

Boris Kolpackov wrote:
> 
> Hi Noel,
> 
> > > In this case no re-execution happens unless you are using some
> > > really cool technique inside
> > >
> > > ifeq ($(MAKELEVEL),0)
> > > endif
> > >
> > > that I am not aware of (and you've got to tell me about it).
> >
> > Like I suggested in a prior email, please read
> > http://make.paulandlesley.org/multi-arch.html for the technique to
> > re-execute make.
> 
> Would you care to provide a minimal but working example? The following
> makefile is given and you cannot modify it:
> 
> # file: makefile
> 
> .PHONY: foo
> 
> foo:
>         @echo foo
> 
> You can change MAKEFILES from environment. The result should be make
> re-execution even in case when I say 'make foo'.
> 
> 
> good luck,
> -boris
> 
>   
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: Digital signature




reply via email to

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