automake
[Top][All Lists]
Advanced

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

Re: Overwriting targets.


From: Ralf Wildenhues
Subject: Re: Overwriting targets.
Date: Mon, 23 Apr 2007 17:51:10 +0200
User-agent: Mutt/1.5.15 (2007-04-13)

* Benoit Sigoure wrote on Mon, Apr 23, 2007 at 04:06:44PM CEST:
> Quoting Ralf Wildenhues <address@hidden>:
[...]
>>  all-local:
>>        cd gcc-4.0.1 && $(MAKE) all
>
> BTW, this simulates the case when `gcc-4.0.1' is after `.' in SUBDIRS.  
> This won't work if `all' needs to be made in the sub-directory before
> in `.' (which is often the case).
> I don't have a good solution when the sub-directory needs to be invoked
> recursively before `.', does anyone have an idea?  (better than overriding 
> the recursion mechanism with a hand-crafted one)

What about the alternative solution that I outlined?  This one:

>> Maybe a much easier solution is to patch the gcc-4.0.1/Makefile
>> to let distclean be a no-op, then avoid all the manual overriding
>> above, put gcc-4.0.1 in SUBDIRS, and let distclean-local do the
>> cleanup.  In that case, you cannot use parallel `make -j distclean',
>> however.  I suppose that's a minor inconvenience only.

Cheers,
Ralf




reply via email to

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